"Python basic exercises" day01

Profile: https://lipeiguan.top

1. Briefly variable naming

2.name = input ( ">>>") name variable is what type of data?

The basic structure of 3.if conditional statement?

4. Print out the contents with the following print:

File can pick up a pen tranquility,
can force the ⻢ the moves.
Center Weighted deposit strategy Ho Face wins,
ancient and modern hero is the only monarch.

5. Use the if statement to write guess the size of the game:

An ideal setting numbers such as: 66, allowing users to enter a number, if larger than 66, the results show a big guess; if less than 66, the results show a small speculation; only equal to 66, the results show the correct guess.

6. Tips Using the user to enter his age, the program proceeds ⾏ judgment.

If ⼩ to 10, Tips ⼩ fart child, if zoomed to 10, ⼩ 20, Tips adolescent rebellion ⼩ fart child. If zoomed to 20, ⼩ 30. Tips to start qualitative, began to mix ⼩ fart child society reach of children, if zoomed to 30, ⼩ 40. Tips to look old zoomed not ⼩, and quickly married ⼩ fart child reach of children. If zoomed to 40, ⼩ 50. Tips for home ⾥ have a disobedient child fart ⼩ reach of children. If zoomed to 50, ⼩ to become put on the monitor 60. Your Own ⻢ old fart disobedient child of reach of children. If zoomed to 60, ⼩ to 70. Tips are alive and good old fart child reach of children. If zoomed to 70, ⼩ to 90. Tips Face ⽣ nearing completion of ⼀ old fart child reach of children. If zoomed to 90 or more. Tips. ⻅ this world again.

7. Single ⾏ comments, and multi-⾏ comment?

8. Description of difference Python3x and Python2x you know?

9. Tips Using the user input ⿇ flower vine. Using the user input to determine the right. If, Tips really smart, if not, you are a sucker What Tips

10. The user enters a month, month and then determine how many months. According month not to print out different diets (write freely according to personal habits and home habits)

11. The user inputs a score, the score according to the user to determine the grade of the examination results.

>=90    A
>=80    B
>=70    C
>=60    D
<60    不及格

12. The outputs of all odd-numbered 1-100

13. The outputs of all even-numbered 1-100

14. seeking 1--2 + 3 - 4 and the number of all + ... 99

15. The user login (three chances to retry)

Guess you like

Origin www.cnblogs.com/BlameKidd/p/11318640.html