-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrandom_stuff.py
More file actions
104 lines (79 loc) · 1.66 KB
/
random_stuff.py
File metadata and controls
104 lines (79 loc) · 1.66 KB
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
# print("Hello World","How are you?",sep=" ",end="Thank You!")
# print("Hello World","How are you?",sep=" /n ",end="Thank You!")
#print()
name="Darshan"
#print(f"Hello {name}. How are you?")
age=25
#print("Hello {} . You are {} years old".format(name,age))
# print(type(age))
# print(type(name))
# cars=['audi','Mercedes',10,23,[23,[56]],'scorpio']
# print(cars)
# cars[2]='maruti'
# print(cars)
# tuple1=(12,23,34,23,'audi','BMW',[23,[34]])
# print(tuple1)
#tuple1[2]='darshan'
# print(tuple1)
#print(range(5,9,2))
# player=['John',26, 6.1, "Basket Ball"]
# player={
# "name":"john",
# "age":26,
# "Height":6.1,
# "game":"Basket Ball"
# }
# print(player)
# canbeanything={1}
# print(type(canbeanything))
# lang="32761542765423"
# print(len(lang))
# print(lang[2:5])
# print(lang[2:])
# num='10'
# num=int(num)
# print(num+num)
# height=6.3
# print(int(height))
# list1=[1,2,3,4,5,]
# print(tuple(list1))
# print(list1)
# player={
# "name":"John",
# "age":25,
# "Height":6.1,
# "game":"cricket"
# }
# print(player["name"])
# print(player.get("name"))
# blank=(1)
# if(0):
# print("Hii")
# elif(blank):
# print("Hello Darshan")
# else:
# print("no problem")
# counter=0
# while(counter<10):
# print(counter)
# counter+=1
# else:
# print("BYE LOOP")
# for _ in range(0,10):
# print("HII")
# cars=['audi','BMW']
# for car in cars:
# print(car)
player={
"name":"John",
"Age":27,
"Height":5.5,
"Game":"Cricket"
}
# print(player.keys())
# print(player.values())
# for key in player.keys():
# print(f"{key}:{player[key]}")
#print(player.items())
for _,y in player.items():
print(_,":",y)