The first day of June

# Formatted output 
name = input ( "Please enter your name:")
Age = the INPUT ( "Please enter your age:")
Print ( "My name is% s,% s years old I am!"% (Name, Age))

# score
num = int (input ( "Please enter your score:"))
IF NUM> 90:
Print ( "a")
elif NUM> 80:
Print ( "B")
elif NUM> 70:
Print ( "C")
elif NUM> 60:
Print ( "D")
the else:
Print ( "E")
# accumulate
NUM =. 1
SUM = 0
the while NUM <=. 8:
Print (NUM)
NUM + =. 1
SUM + = NUM
Print (SUM )

# month Jan. Dao 5
Mouth = the iNPUT ( "Please enter the month:")
IF Mouth == "Jan":
Print ( "eat")
IF Mouth == "February":
Print ( "eat the shelf")
IF Mouth == "March":
print ( "eat catkins")
IF Mouth == "April":
print ( "noodles")
IF Mouth == "May":
print ( "fried chicken")
# talk
the while True:
S = the INPUT ( "Please began to say: ")
IF s == 'q':
BREAK # enter q to quit
if" money "in s: # If" money "character in s
print (" can not be output ") # output special characters can not output!
the Continue # exit the current continue
print ( "output say:", S)


# outputs 1 to 100, and the addition
COUNT =. 1
SUM = 0
the while COUNT <= 100:
Print (COUNT)
COUNT + =. 1
SUM + = COUNT
Print ( SUM)

# 1 to 100 outputs odd
COUNT =. 1
the while COUNT <= 100:
if count % 2 != 0:
print(count)
count += 1

2019 graduate, wanted to do PYTHON
because the school insisted in April and May to let us go back to school to write papers, was fired from the company. Hum hum another 20 days there is no way I am not a student, filling it, Although he did not understand my father, but I still want to do what you want.

this is the code read program, and then write their own according to their own understanding of




Guess you like

Origin www.cnblogs.com/q402599/p/10958912.html