- Joined
- Aug 2, 2014
I know very little python.
I can make it print and choose my lottery numbers, that is the extent of my programming knowledge.
But I did discover the best way yet to study for college.
I wrote a simple python program to run in the terminal.
It asks a question through raw_input, and compares the input with the answer....like so
so on and so forth.
But I have some ideas for different things.
First, I want to know how to incorporate simple loops.
Such as if the input is wrong, it restates the input question, and keeps doing so until you get it right, or gives you three chances, then prints the answer.
Second, i have found that I also like to print study information between the questions,
But it just prints it all at once as a block,
How do I get it to pause before printing,
Or make it look like it's typing, like in the 90's movies where they would type the place and date on the bottom of the screen with a blinking green cursor.......
Even though I know I can't make mine green, it's a stupid light blue, I
I can make it print and choose my lottery numbers, that is the extent of my programming knowledge.
But I did discover the best way yet to study for college.
I wrote a simple python program to run in the terminal.
It asks a question through raw_input, and compares the input with the answer....like so
Code:
o= raw_input ('what is the syndrome caused by a trisomic defect on chromosone 21 called?:')
if o == 'down syndrome'
print ('that is correct')
else:
print ('sorry that is incorrect, the correct answer is down syndrome')
so on and so forth.
But I have some ideas for different things.
First, I want to know how to incorporate simple loops.
Such as if the input is wrong, it restates the input question, and keeps doing so until you get it right, or gives you three chances, then prints the answer.
Second, i have found that I also like to print study information between the questions,
But it just prints it all at once as a block,
How do I get it to pause before printing,
Or make it look like it's typing, like in the 90's movies where they would type the place and date on the bottom of the screen with a blinking green cursor.......
Even though I know I can't make mine green, it's a stupid light blue, I