-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA03.py
More file actions
38 lines (29 loc) · 727 Bytes
/
A03.py
File metadata and controls
38 lines (29 loc) · 727 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
#
# Name: Mehmet Karatas
# SSID: 1640957
# Assignment #: 3
# Submission Date:
# Description of program:
# Convert upper case to lower case and lower case to upper case
#
user_input_sentence = input("Enter sentence to convert opposite cases: ")
for i in user_input_sentence:
if i.isupper():
make_lower = user_input_sentence.lower()
print(make_lower)
else:
make_upper = user_input_sentence.upper()
print(make_upper)
#
# ### I tried a few things but I couldnt make it, I will finish later. ##
#
# uInput = input("Enter the ")
# j = 1
# while j < 0:
# convert_to_upper = uInput.upper()
# print(convert_to_upper)
# if uInput == 'q':
# print("Goodbye")
# break
# else:
# uInput = input("Enter the ")