Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python 3.6- Please correct syntax of this code. And please provide block comments explaining the code step by step. Thanks def romanNum (r) return 1

Python 3.6- Please correct syntax of this code. And please provide block comments explaining the code step by step. Thanks

image text in transcribed

def romanNum (r) return 1 return 5 return 10 return 50 return 100 return 500 return 1000 if (rV if (r 'X' ) : if (r == 'L' ): 10 if (r =- 'D'): 12 13 14 15 16 17 18 19 20 21 if (r == 'M' ); def convertRtoD(roman) decimal 23 2 4 25 26 27 28 29 30 31 32 while(i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explanation of the definition of criminal law's and justice lll

Answered: 1 week ago