-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.py
More file actions
49 lines (43 loc) · 1.61 KB
/
Test.py
File metadata and controls
49 lines (43 loc) · 1.61 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
#===============================================================================
#
# a = ['Mary', 'had', 'a', 'little', 'lamb']
# for i in range(len(a)):
# print(i,a[i])
# print(range(10))
#===============================================================================
#===============================================================================
#
# for i in range(10,0,-3):
# print(i)
#===============================================================================
#===============================================================================
# words=['abc','cde','abcdefg']
# for w in words[2:3]:
# if len(w) > 6:
# words.insert(0,w)
# print(words)
# print(words[1:2])
#===============================================================================
#===============================================================================
# words = ['cat','dog','monkey']
# for w in words:
# print(w,len(w))
#===============================================================================
#===============================================================================
# a,b=0,1
# while b < 10:
# print(b),
# a,b = b , a+b
# c=[12,12,34]
# print(len(c))
#===============================================================================
#===============================================================================
# x=int(input("Enter value"))
# if x<0:
# x =0
# print('Negative value')
# elif x==0:
# print('Zero')
# else :
# print('bigger than zero')
#===============================================================================