forked from vikash-verma-profile/hadoop-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Part-1.py
54 lines (46 loc) · 889 Bytes
/
Part-1.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
import array as arr
a=arr.array('i',[1,2,3])
#print(a)
for b in a:
print(b)
"""print('hello asjhdgasyu d gfayhsd fahsd faghsd faghsd fahd world');
asdasd"""
"""msg="vikash verma";
"""
"""def sum():
global msg
msg="vikash1";
msg1="vikash";
print(msg1);
"""
#a=int(input("Please enter a number: "));
#print(msg);
# function is called
#sum();
#print(msg);
#print("");
#ms="vikash verma"
thistuple={"1":"Vikash","2":"verma"}
#thistuple.add(7)
#thistuple.remove(4)
#thistuple.clear();
print(thistuple.get("1"))
"""
for item in thistuple:
print(thistuple.get(item))
"""
"""
for item in thistuple:
if(item%2==0):
print(str(item)+" is even")
else:
print(str(item)+" is odd")
print(thistuple[0:5])
"""
"""
if (a!=4):
print("number is divisble by 2 and 3");
elif a%3==0:
print("number is divisble by 3");
else:
print("number is divisble not divisible by 2 and 3");"""