-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphy1.py
More file actions
42 lines (32 loc) · 848 Bytes
/
Copy pathphy1.py
File metadata and controls
42 lines (32 loc) · 848 Bytes
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
import os
os.system("tput setaf 1")
print("t\t\thay welcome to TUI thats make life simple")
os.system("tput setaf 7")
print("\t\t\t--------------------------------------- )
print("""press 1: to see date
press2: to check cal
press3: conf web server
press4: to create user
press5: create file
""")
print("Enter your choice : " , end="")
ch=input()
print(ch)
if int(ch) == 1:
os.system("date")
elif int(ch) == 2:
os.system("cal")
elif int(ch) == 3:
os.system("yum install httpd")
elif int(ch) == 4:
print("can u plz user name: " , end='')
create user = input()
os.system("useradd {}".format (create_user))
elif int(ch) == 5:
os.system("date")
elif int(ch) == 1:
os.system("date")
elif int(ch) == 1:
os.system("date")
elif int(ch) == 1:
os.system("date")