- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinput.py
More file actions
Latest commit
17 lines (11 loc) · 372 Bytes
/
Copy pathinput.py
File metadata and controls
17 lines (11 loc) · 372 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
user_name=input("What is your name? ")
print(f"Hello {user_name}")
user_number=int(input("What do you want to double? "))
print(user_number*2)
#---upper lower case ex
user_text=input("Enter some text: ")
upper_or_lower=input("Enter 1 to uppercase and 2 to lowercase: ")
ifupper_or_lower=="1":
print(user_text.upper())
else:
print(user_text.lower())