SHARE
TWEET

Untitled

a guest Oct 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #1.1.1   x = input ("age")
  2. if x >= "18":
  3.     print ("Adulte")
  4. else:
  5.     print ("mineur")
  6. #1.1.2    x = input ("age")
  7. if x >= "18":
  8.     print ("Adulte")
  9. else:
  10.     print ("enfant")
  11. 1.1.3     x = input ("age")
  12. if x >= "18":
  13.     print ("Adulte")
  14. elif "18">x>"12":
  15.     print ("ado")
  16. else:
  17.     print ("enfant")
  18.  
  19. #1.1.4    x = input ("age")
  20. if x >= "18":
  21.     print ("Adulte")
  22. elif "18">x>"12":
  23.     print (‘’)
  24. else:
  25.     print ("enfant")
  26.  
  27. #1.1.5   x=input("age")
  28. if "18">x>"12":
  29.     print("Ado")
  30.  
  31. #1.1.6     x = -7
  32.  
  33. if x<10 and x > 12
  34. print ("Ado")
  35. elif x <= 0 or x > 150:
  36.     print ("inhumain")
  37.  
  38. #1.1.7   y=333
  39. tab=[1,11,12,13,16,18,30,33,34,77,39]
  40. tab.append(y)
  41. print(tab)
  42. #1.1.8   dico={"profession": "designer"}
  43. dico["age"]="20"
  44. print(dico)
  45.  
  46. #1.1.9     x = input("nombre")
  47. x= int(x)
  48.  
  49. if x%2 == 0:
  50.     print("pair")
  51. else:
  52.     print("impair")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top