Hausaufgabe--Python 02

0- 计算BIF的个数

len(dir(__builtins__))

 

1- Get the input from user 

e.g. 

Get the number: 

number = int(input ('please input a number between 1-100 : '))

if 1<=number<=100:
print ('you are so beautiful')

else:
print('you are too naughty')

 

Get string:

name = input('please input your name: ')
print ('Hello', name)

 

posted @ 2017-05-19 22:28  ReedyLi  阅读(124)  评论(0编辑  收藏  举报