Advertisement
Guest User

newfile.py

a guest
May 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. Age=30
  2. Name="Tope"
  3. if Age <= 30:
  4.     Name == "Tope"
  5.     print("You are elligible for NYSC!")
  6. else:
  7.     print("You are not elligible for NYSC")
  8.  
  9. Name="Temitope! Ayo"
  10. if Name=="Temitope":
  11.     print("You are welcome")
  12. elif Name=="Ayo":
  13.     print("Not you please")
  14. else:
  15.     print("This is not you")
  16.    
  17. for b in range(0,5):
  18.     print(b)
  19.    
  20. Courses=["CHM", "BIO", "PHY"]
  21. for i in Courses:
  22.     print(i)
  23.    
  24.    
  25. i = 1
  26. while i <=5:
  27.     print(i)
  28.     i = i + 1
  29.    
  30.    
  31. i = 1
  32. while i <=7:
  33.     print(i)
  34.     i = i + 2
  35.    
  36. for i in range(10%1,10):
  37.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement