PY
py
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
# Created by Damien Page
# what you need to do to make your code run the way you want
# is compare the whole input, not loop through the input with
# for/in, so remove "for c in ime"
# so set ime back to get user input:
ime = input()
# now that you have the input, you want to output a roman
# numeral based on what the input is, so you need to compare
# your input to some options
# for c in ime: <--- remember you dont want to use this, because when
# c = c.upper() <--- your input doesn't require this, see below
# now we want to take the whole imput and compare it to several different
#options, so instead of "c" we can use "ime":
if (ime == "1"):
print("I")
elif (ime == "2"):
print("II")
elif (ime == "3"):
print("III")
elif (ime == "4"):
print("IV")
elif (ime == "5"):
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run