Advertisement
STANAANDREY

ls2 corectare cod

Oct 7th, 2022
713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.47 KB | None | 0 0
  1. #======================
  2. def f(x):
  3.     return x + 1
  4. print(f(1))
  5. #======================
  6. def f(x):
  7.     return x + 1
  8. print(f(1))
  9. #======================
  10. def f(x):
  11.     return x + 1
  12. print(f(1))
  13. #======================
  14. def f(x):
  15.     if (x == 0):
  16.         return True
  17.     else:
  18.         return False
  19. print(f(1))
  20. #======================
  21. def f(x):
  22.     if (x == 0):
  23.         return True
  24.     else:
  25.         return False
  26. print(f(1))
  27. #======================
  28. def f(x):
  29.     if (x == 0):
  30.         return True
  31.     else:
  32.         return False
  33. print(f(1))
  34. #======================
  35. def f(x):
  36.     if x == 0:
  37.         return True
  38.     else:
  39.         return False
  40. print(f(1))
  41. #======================
  42. def f(x):
  43.     if x == 0:
  44.         return True
  45.     else:
  46.         return False
  47. print(f(1))
  48. #======================
  49. def f():
  50.     print("Fast food")
  51. #======================
  52. def f(x):
  53.     return x + 1
  54. #======================
  55. def f(x):
  56.     return x + 1
  57. #======================
  58. def increment(x):
  59.     return x + 1
  60. print(increment(2))
  61. #======================
  62. def increment(x):
  63.     return x + 1
  64. print(increment(5))
  65. #======================
  66. def increment(x):
  67.     return x + 1
  68. print(increment(5))
  69. #======================
  70. import math as m
  71. m.floor(3)
  72. #======================
  73. import math
  74. math.floor(3)
  75. #======================
  76. def impartire(x, y):
  77.     return x / y
  78. print(impartire(1, 2))
  79. #======================
  80. def f(x):
  81.     return x + 5
  82. print(f(1))
  83. #======================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement