I am a beginner in python. I am a little bit confused!
Source: Internet
Author: User
I am a beginner in python. I am a little bit confused! -- Linux general technology-Linux technology and application information. For details, refer to the following section. #/Usr/bin/python
#-*-Coding: latin-1 -*-
Import OS, sys
Print 'do you want to know my age? Let's guess'
Number = 25
Running = True
While running:
Guess = int (raw_input ('enter a number :'))
If guess = number:
Print 'Congratulations. You guessed it. Don't tell others .'
Running = False
Elif guess
# Print 'No, it is a little higher than that'
Print 'haha, are I so young? Guess again'
Else:
# Print 'No, it is a little lower than that'
Print 'please! I am not that mature! '
Else:
Print "The Game is over ."
Print 'cannot understand English! The game is over. What a giggle, please wash and sleep! '
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service