- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
Latest commit
20 lines (16 loc) · 456 Bytes
/
Copy pathtest.py
File metadata and controls
20 lines (16 loc) · 456 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
importos
importrequests
foriinrange(0,10):
os.system("ls")
ifnotos.path.exists("sam"):
os.system("mkdir sam")
else:
print"path is already there"
#os.system("vi sam.c")
#os.system("mkdir sam")
os.system("pwd")
song1="Humme hai hero"
#r = requests.get('https://api.github.com/user', auth=('sameer2800', 'pass'))
r1=requests.get('https://google.com');
withopen('sam.txt', 'w') asfile_:
file_.write(r1.text.encode('utf-8').strip())