Practice makes perfect

7 1 0
                                        

1. print value of the variable and text(my age is: ) into one print

output will look like:  my age is: 17 

2. same as previous question, but allow the user to write his own age into variable, use command: input

3.  make a program that will randomly generate 20 numbers from 1-50 print them  and for every number it will write if its even or odd )(you will need to use: loop:for, and condition if/else)

4. write down 5 useful shortcuts (capitole1) if you want you can write them in comments, it could boost algorithm a little

5. make a code that will generate and print random numbers in range from 1 to 100 untill it generates number 27.


Wanna know more?! try these:

1. make a program that will generate and print random numbers in range from 1 to 200 untill it generates certain randomly generated number(program will choose number 80 and than it will try to find in the while cycle)

2. make a program that will generate random number from 1 to 10 and that ask user to guess this number, if he/she guesses correctly it will tell him: congratulation you won
if he guesses incorrectly it will say something else.

3. finnal boss: previous program needs to be run again after every incorrect guess, try to fix it so user will be able to guess infinitely untill he gets it correct, when he gets it correct print congratulation you won 100 times


tomorow in next capitole i'll upload answers to all questions
if any of my questions is  too chaotic and hard to understand lemme know in comments
if you have some truble with this questions you can also let me know in comments, ill try to help ya.

Python for beginnersWhere stories live. Discover now