dauzcode

python raw_input if none

Jul 19th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. #okei today l will speak some logic / algoritm
  4. #l make a raw_input but while user input not put data (just press Enter)
  5.  
  6. #FIRST Tips
  7. a = raw_input("data : ") #this is for multiple input can be string and can be number
  8. if a == "":
  9. print "data is nothing"
Advertisement
Add Comment
Please, Sign In to add comment