#Roman Numeral Converter Number = float(raw_input("Please Enter a Number (1-10)")) if Number == 1 print "Roman Numeral is I" elif Number == 2 print "Roman Numeral is II" elif Number == 3 print "Roman Numeral is III" elif Number == 4 print "Roman Numeral is I"' elif Number == 5 print "Roman Numeral is V" elif Number == 6 print "Roman Numeral is VI" elif Number == 7 print "Roman Numeral is VII" elif Number == 8 print "Roman Numeral is VIII" elif Number == 9 print "Roman Numeral is IX" elif Number == 10 print "Roman Numeral is X" else print("Error:Invalid Number") #End Module
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question