-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroman.py
27 lines (22 loc) · 890 Bytes
/
roman.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
from random import randint
num=randint(1 ,10)
if num==1:
print("The roman numeral equivalent of " + str(num) + " is I.")
elif num==2:
print("The roman numeral equivalent of " + str(num) + " is II.")
elif num==3:
print("The roman numeral equivalent of " + str(num) + " is III.")
elif num==4:
print("The roman numeral equivalent of " + str(num) + " is IV.")
elif num==5:
print("The roman numeral equivalent of " + str(num) + " is V.")
elif num==6:
print("The roman numeral equivalent of " + str(num) + " is VI.")
elif num==7:
print("The roman numeral equivalent of " + str(num) + " is VII.")
elif num==8:
print("The roman numeral equivalent of " + str(num) + " is VIII.")
elif num==9:
print("The roman numeral equivalent of " + str(num) + " is IX.")
else:
print("The roman numeral equivalent of " + str(num) + " is X.")