-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
124 lines (91 loc) · 3.37 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# print("hello world")
# x = min(15, 135, 24)
#
# float("5.4")
#
# bool(5)
# abs(-5.4)
#
#
# int("5")
# int(5.6)
#
# pow(2,3)
#
# round(1.249, 2)
#
# help(abs)
# import math
# print(dir(math))
# from math import factorial
# x = int(input("ricxvi: "))
# print(factorial(x))
# import math
# x = math.factorial(3)
#
# from math import sqrt, pi
# y = sqrt(9)
# print(y, pi)
#
# from math import *
# print(pi)
# li = []
# li.append(3)
# print(li)
#
# from math import sqrt, pi
# x = 9
# y = sqrt(x)
#
# from math import *
# print(pi)
# import random as r
# print(" ______")
# print(" _\ _~-\___")
# print(" = = ==(____AA____D")
# print(" \_____\___________________,-~~~~~~~`-.._")
# print(" / o O o o o o O O o o o o o o O o |\_")
# print(" `~-.__ ___..----.. )")
# print(" `---~~\___________/------------`````")
# print(" = ===(_________D")
# print("There is a man in this plane, who is planting bombs in the airplane.\nOne bomb is planted in the top of the airplane.\nHe thought of one of the dozen. If you guess at least one of these ten numbers, the bomb will not explode, otherwise he will plant down another bomb.\nIf you guess the right, he will try to detonate the bomb again, so he will thought and you have to guess again.")
# num1 = int(input("\n\nEnter the number from 10 to 100, you think he thought: "))
# thought_number1 = r.randint(1, 9)
# if num1 // 10 == thought_number1:
# print("You are very lucky!!! ARRRRRR")
# print(" ______")
# print(" _\ _~-\___")
# print(" = = ==(____AA____D")
# print(" \_____\___________________,-~~~~~~~`-.._")
# print(" / o O o o o o O O o o o o o o O o |\_")
# print(" `~-.__ ___..----.. )")
# print(" `---~~\___________/------------`````")
# print(" = ===(_________D")
# else:
# print("BOOOOOOOM!!!\n Another bomb has been planted, bad luck HAHAHAHA")
# print(" ______")
# print(" _\ _~-\___")
# print(" = = ==(____AA____D")
# print(" \_____ ~~~~`-.._")
# print(" / o O o o o O o |\_")
# print(" `~-.__ ___. .. )")
# print(" `---~~\___________/------------`````")
# print(" = ===(_________D")
# print("If you guess first number, that doesn't mean that plane survived, so i blew it up and placed down a bomb! HAHAHAHA ")
# num2 = int(input("\n\nEnter the number from 10 to 100, you think he thought: "))
# thought_number2 = r.randint(1, 9)
# if num2 // 10 == thought_number2:
# print("That mean nothing for me, plane has been destroyed anyway!")
# else:
# print("I ordered nuke on this plane and it will come and blew plane up in 10 seconds and i will give you no chances to save a plane!\n PPPPPPXXXXXSSSSSSSS")
# original_list = [1, 2, 3, 4, 5, 6, 7]
# reversed_list = []
# for i in range(len(original_list), 0, -1):
# reversed_list.append(i)
# print(reversed_list)
def funqcia(l):
new_l = []
for i in l:
new_l.append(len(i))
return new_l
print(funqcia(["jasu", "shaurma", "wamiyvanet"]))