Town Field Poem:
Cheng listens to the Tathagata language, the world name and benefit of Dayton. Be willing to do the Tibetan apostles, the broad show is by Sanfu mention.
I would like to do what I learned, to achieve a conscience blog. May all the Yimeimei, reproduce the wisdom of the body.
——————————————————————————————————————————
Code
1Temp=input ('Please enter a number:')2guess=Int (temp)3 4 ifGuess==8:5 Print('the number entered is 8.')6 Else:7 Print('the number you entered is not 8.')
Result
Step1:
1 ============= restart:c:/users/administrator/desktop/mytest.py =============2 Please enter a number:
Step2:
1 ============= restart:c:/users/administrator/desktop/mytest.py =============2 Please enter a number: 83 The number entered is 84
Note: The colon should have curly braces gone, pay attention to indentation
——————————————————————————————————————————
The essence of the blog, in the technical part, more in the town yard a poem. Python version 3.5, System Windows7.
Python is a good language and deserves to be studied hard. I am following the small Turtle Video tutorial to learn, recommended.
I am a novice, so if the content of the blog can be improved, or even the wrong place, please leave a comment, I will try to correct, strive to achieve a conscience blog.
Note: This article is only as a scientific research study, if I inadvertently violated your rights and interests, please be sure to timely inform, I will make corrections.
Python3 Base If Else format enter an integer and determine if it is 8