Hi Navami, On 24/07/2019 15.10, Navami K wrote:
A website that will first randomly generate a number unknown to the website visitor. The visitor needs to guess what that number is. (In other words, the visitor needs to be able to input information.) If the visitor’s guess is wrong, the program should return some sort of indication as to how wrong (e.g. The number is too high or too low). If the visitor guesses correctly, a positive indication should appear. You’ll need functions to check if the visitor input is an actual number, to see the difference between the inputted number and the randomly generated numbers, and to then compare the numbers. I have attached what i have done so far
First of all, please don't post screenshots. Try to attach the actual code or link to some kind code sharing site. It is extremely hard for others to read otherwise. If you want help, you should make it as easy as possible for people to help you.
Secondly, what you are trying to achieve is fairly simple. Sorry if I sound condescending, but I'm guessing you don't have much previous experience with programming?
Maybe it would be a good start to try to write a simple Python command line program that does what you are trying to achieve before focusing on a Django application?
If you can do that, then at least you have the logic in place and you can start focusing on how to make that into a simple Django application.
Or, before even doing that, try to make a Django application where you only focus on the user interface (it doesn't really have to do anything) before combining the two?
Just some ideas, hope it's helpful. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/65ee05b5-1f7a-19bc-4838-f219c95116a3%40stacktrace.dk.

