-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.py
More file actions
65 lines (53 loc) · 910 Bytes
/
Copy pathtest1.py
File metadata and controls
65 lines (53 loc) · 910 Bytes
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
#help("keywords")
#help("for")
import keyword
print(keyword.kwlist)
a = keyword.kwlist
print(type(a))
b = 4.345
print(type(a))
print(isinstance(a, float))
sentence = "Hello world"
print(type(sentence))
print(isinstance(sentence, str))
num_entero = 5
print(type(num_entero))
print(isinstance(num_entero, int))
x = 10
#print(hex(id(x)))
print(id(x))
x = 20
print(id(x))
nombres = ["Jon", "Maria"]
print(id(nombres))
nombres.append("Pedro")
print(id(nombres))
print(nombres)
str1 = "PYTHON"
print(id(str1))
str2 = str1
print(id(str2))
del str1
exists = True
if exists == True:
print("True")
print("True")
print("FIN")
x = 3
if (x > 1):
print("mas que uno")
x = 10
y = 4
if (x >= 1):
print("más que uno")
elif (x < 3) and (y < 3):
print("klas")
else:
print("holly shit")
lista = [242, 444, "Ego"]
print(lista)
for i in lista:
print(i)
s = range(10)
print(s)
print(type(s))