Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. print(not 1 == 1)
  2.  
  3. print(not 1 > 7)
  4.  
  5. table = "round"
  6. print(not table == "round")
  7.  
  8. if (not table == "round"):
  9. print("what do we need?")
  10. elif (not table != "round"):
  11. print("need round table for round table meeting")
  12.  
  13. if (not 2 == 10):
  14. print("this statement is most likely wrong")
  15.  
  16. if (not 15!=10):
  17. print("this statement is most likely true")
  18.  
  19. print(False == False or True)
  20.  
  21. print(False == (False or True))
  22.  
  23. print((False == False) or True)
  24.  
  25.  
  26. print(1 == 1 or 5)
  27.  
  28. print(1 or 5)
  29.  
  30. apple = 50
  31. banana = 20
  32. print(50 == apple or banana)
  33. print(50 == banana or apple)
  34.  
  35.  
  36. whatever = "whenever"
  37.  
  38. whoever = "whichever"
  39.  
  40. print("whenever" == whatever)
  41. print("whatever" == whoever or whatever)
  42. print("whenever" == whoever or whatever)
  43.  
  44.  
  45. print("It is intersting, when I type in 'whatever' instead of 'whatever', the output is still whenever. even first 'whatever' is a string instead of a name")
  46.  
  47.  
  48. print(whatever == whoever or whatever)
  49.  
  50. print("when i use a name in a '==' and 'or'. the output is the value of the name")
  51.  
  52. print(False == False or True)
  53. print(False == (False or True))
  54. print((False == False) or True)
  55. print(1 == 1 or 5)
  56. print(1 or 5)
  57. apple = 50
  58. banana = 20
  59. print(50 == apple or banana)
  60. print(50 == banana or apple)
  61. print(50 == (banana or apple))
  62. print(50 == (apple or banana))
  63. whatever = "whenever"
  64. whoever = "whichever"
  65. print("whenever" == whatever)
  66. print("whatever" == whoever or whatever)
  67. print("whenever" == whoever or whatever)
  68. print("It is intersting, when I type in 'whatever' instead of 'whatever', the output is still whenever. even first 'whatever' is a string instead of a name")
  69. print(whatever == whoever or whatever)
  70. print("when i use a name in a '==' and 'or'. the output is the value of the name")
  71. print("the understanding is clear now, whenever i use == and or operators, == is ahead of or. the system will run == first, if it is True, it outputs Ture and stop processsing or operation. if is is false, the system will not output false, instead it will carry out the or operation and output the remaining first vaule of values'if there are more than one values remaining'.")
  72. print(4 == 5 or 10)
  73. print(10 or 5)
  74. print(4 or 5)
  75. print(5 or 4)
  76. print(10 or 15)
  77. print(15 or 150)
  78. print(4 == 10 or 4)
  79. print(4 == 10 or 11)
  80. print(4 == 4 or 10)
  81. print(4 == 10 or 11 or 15)
  82. print("github's an")
  83.  
  84. num = 7
  85. if num == 5:
  86. print("Number is 5")
  87. else:
  88. if num == 11:
  89. print("Number is 11")
  90. else:
  91. if num == 7:
  92. print("Number is 7")
  93. else:
  94. print("Number isn't 5, 11 or 7")
  95.  
  96. age = 20
  97. if age == 10:
  98. print("He is 10 years old")
  99. else:
  100. if age == 15:
  101. print("his age is 15")
  102. else:
  103. if age == 20:
  104. print("this person is 20 for sure!")
  105. else:
  106. print("we have no idea about this person's age.")
  107.  
  108. num = 7
  109. if num == 5:
  110. print("Number is 5")
  111. elif num == 11:
  112. print("Number is 11")
  113. elif num == 7:
  114. print("Number is 7")
  115. else:
  116. print("Number isn't 5, 11 or 7")
  117.  
  118. my_dota2_rank = "rank 1000"
  119. if my_dota2_rank == "rank 3000":
  120. print("I am rank 3000 in NA")
  121. elif my_dota2_rank == "rank 10":
  122. print("I am a better player than Gorgc")
  123. elif my_dota2_rank == "rank 2000":
  124. print("I am a bad player")
  125. elif my_dota2_rank == "rank 1000":
  126. print("this is a normal rank player around rank 1000")
  127. else:
  128. print("I am a really bad player of dota2.")
  129.  
  130. print(1 == 1 and 2 == 2)
  131.  
  132. print(1 == 1 and 2 == 3)
  133.  
  134. print(1 != 1 and 2 == 2)
  135.  
  136. print(2 < 1 and 3 > 6)
  137. my_iq = 146
  138. my_eq = 120
  139. if (my_iq == 20) and (my_eq <= 30):
  140. print("I need some help.")
  141. elif (my_iq >= 120) and (my_eq >=100):
  142. print("I have the potential to do all normal human tasks.")
  143. if (my_iq >= 140) and (my_eq >= 100):
  144. print("I got lucky with my DNA or I am good at the tests")
  145.  
  146. spam = "7"
  147. spam = spam + "0"
  148. eggs = int(spam) + 3
  149. print(float(eggs))
  150.  
  151. word = input("Enter a word: ")
  152. print(word + ' shop')
  153.  
  154. x = 5
  155. y = x + 3
  156. y = int(str(y) + "2")
  157. print(y)
  158.  
  159. x = 4
  160. x += 5
  161. print(x)
  162.  
  163. x = 3
  164. num = 17
  165. print(num % x)
  166.  
  167. x = 7
  168. x = x + 2
  169. print(x)
  170.  
  171.  
  172.  
  173. print("I am using pycharm free version for editing text")
  174.  
  175. print("just google pycharm, it is a really easy to use and cool looking editor")
  176.  
  177. print("it also connects with Github, if you need it")
  178.  
  179. x = "spam"
  180. print(x)
  181.  
  182. x += "eggs"
  183. print(x)
  184.  
  185. x *= 5
  186. print(x)
  187.  
  188. x += "5"
  189. print(x)
  190.  
  191.  
  192. x /= 5
  193. print(x)
  194. print("this does not work")
  195.  
  196. x = 2
  197. print(x)
  198.  
  199. x += 3
  200. print(x)
  201.  
  202. y = 10
  203. print(y)
  204.  
  205. y += 10
  206. print(y)
  207.  
  208. print(y + x)
  209.  
  210. y -= 5
  211. print(y)
  212.  
  213. y *= 20
  214. print(y)
  215.  
  216. y /=5
  217.  
  218. print(y)
  219.  
  220. y %= 7
  221. print(y)
  222.  
  223. foo = input("Enter a number: ")
  224.  
  225. print(foo)
  226.  
  227. bar = input("why do you put a number in: ")
  228.  
  229. print(int(bar) + int(foo))
  230.  
  231. this_is_a_normal_name = 7
  232.  
  233. PARK_ME = "5"
  234.  
  235. park_me = "4"
  236.  
  237. print(park_me + PARK_ME)
  238.  
  239. print(int(park_me) + int(PARK_ME))
  240.  
  241. x = 123.456
  242. print(x)
  243.  
  244. x = "This is a string"
  245. print(x + "!")
  246.  
  247. y = "999"
  248.  
  249.  
  250. print(y + "hehe")
  251.  
  252.  
  253. y = 111
  254.  
  255. print(y)
  256.  
  257. x = 7
  258. print(x)
  259.  
  260. print(x + 3)
  261.  
  262. print(x)
  263.  
  264. y = 5
  265. print(y)
  266.  
  267. print(x + y)
  268.  
  269. print("x" + "y")
  270.  
  271. print("x + y")
  272.  
  273. print(int(x)+int(y))
  274. print(float(input("Enter a number: ")) + float(input("Enter another number: ")))
  275.  
  276.  
  277. print(float(input("a number pls: ")) + float(input("another number: ")))
  278.  
  279. print("2" + "3")
  280.  
  281. print(int("2") + int("3"))
  282.  
  283. print("44"+"5")
  284.  
  285. print(int("44")+int("3"))
  286.  
  287. print(int("44"+"3"))
  288. print("spam" * 3)
  289.  
  290. print(4 * '2')
  291.  
  292. print('pythonisfun' * 7)
  293.  
  294. print("let's try zero")
  295.  
  296. print("let's try zero" * 0)
  297.  
  298. print('Hello world!')
  299. print('Hello world!')
  300. print('Spam and eggs...')
  301. print("spam and eggs")
  302. print("why do we use spam and egg")
  303.  
  304. print('Hello world!')
  305. print("hello world!")
  306. print("this is too easy")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement