Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 using if-elif, write a Python program that reports the contents of a compressed-gas cylinder based on the cylinder's color. The color name
Question 1 using if-elif, write a Python program that reports the contents of a compressed-gas cylinder based on the cylinder's color. The color name i.e. orange or brown etc.. can be entered as lower case or upper case letters but make sure the spelling is correct. Cylinder colors and associated contents are as follows: orange ammonia brown carbon monoxide yellow hydrogen green oxygen If the color is not one of the four names mentioned above, your program displays "Contents unknown". Sample run 1: Enter th cylinder color: yellow The contents is hydrogen Sample run 2: Enter th cylinder color: GREEN The contents is oxygen Sample run 3: Enter th cylinder color: Bron Contents unknown Sample run 4: Enter th cylinder color: ORange The contents is amonia Sample run 5: Enter th cylinder color. Brown The contents is carbon monoxide 0 0 G m
Step by Step Solution
★★★★★
3.28 Rating (148 Votes )
There are 3 Steps involved in it
Step: 1
The description in the image is for an exercise requiring to write a Python program that determines ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started