Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # Python Занятие 1
  2.  
  3. # Переменные
  4.  
  5. a = 1
  6. b = a + 3
  7.  
  8. print(a*b)
  9.  
  10. c = 1.5
  11.  
  12. d = "Hello"
  13. e = "Ilya"
  14.  
  15. print(d, e)
  16.  
  17. # Логические переменные
  18. f = True
  19. g = False
  20.  
  21. # + - * /
  22. # % - остаток 7 % 4 = 3
  23. # // - деление нацело 7 // 4 = 1
  24.  
  25.  
  26. # "Hello"+"World" === "HelloWorld"
  27. # "Python"*2 === "PythonPython"
  28.  
  29. a = 4
  30. if a > 10:
  31. print("!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement