-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPpractice.py
More file actions
59 lines (55 loc) · 1.14 KB
/
Ppractice.py
File metadata and controls
59 lines (55 loc) · 1.14 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
'''age=int(input('Enter age'))
if age<=18:
print('Minor')
if age>18 and age<60:
print('Adult')
if age>=60:
print('Senior')
if age==54:
print('This is also checked')'''
'''age=int(input('Enter age'))
if age<=18:
print('Minor')
elif age>18 and age<=60:
print('Adult')
elif age>60 and age<100:
print('Senior')
elif age==54:
print('this is')
else:
print('Invalid')'''
'''for x in range(6):
if x==3:
continue
print('Hi')
print(x)
print('End')'''
'''for x in range(6):
if x==3:
break
print('Hi')
print(x)
print('End')'''
'''for x in range(6):
if x==3:
pass
print('Hi')
print(x)
print('End')'''
'''for x in range(1,5):
if x%2!=0:
print('B',end='')
else:
print('W',end='')'''
'''for x in range(1,5):
if x==x:
print('B',end='')'''
for x in range(1,5):
if x%2!=0:
print('B',end='')
else:
print('W',end='')
if x%2!=0:
print('B',end='')
else:
print('W',end='')