Today we mainly learn the commonly used operators, such as arithmetic operators, comparison operators, logical operators, and so on, given that the courseware is doing too well (praise the Little Turtle ~ ~ ~ ~). I paste the picture directly (in fact, I am lazy)
noun explanation
Stitching
This is the first section of the study of a noun, because of their lazy, did not write, add here. Stitching, in fact, is to connect two strings together, not the other, note the following example of the difference
Finally, highlight the next version of the issue, with today's program (to run in version three)
temp = str (input ('Please enter a year:')) whileNot temp.isdigit (): Temp= Input ("Sorry, your input is wrong, please enter an integer:") Year=int(temp)ifyear/ -==int(year/ -): Print (temp+'is a leap year! ')Else: if(year/4==int(year/4) and (year/ -!=int(year/ -): Print (temp+'is a leap year! ') Else: Print (temp+'not a leap year! ')
Little Turtle Python Video Sixth lecture (notes and after-school exercise answers)