- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnested.py
More file actions
Latest commit
21 lines (18 loc) · 562 Bytes
/
Copy pathnested.py
File metadata and controls
21 lines (18 loc) · 562 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 16 13:51:17 2017
@author: root
"""
num=20
fortestinrange(num):
iftest%2==0:
iftest%3==0:
sqr=test*test
print('----------------------------------------------')
print("|test is divisible by 2 amd 3", test, '|', 'squre is', sqr, '|')
print('----------------------------------------------')
else:
print("it is divisible by 2 and not 3")
else:
print("it is not divisible by 2")