Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please refer to my Python code below. The output has extra space btwn the $ and the value. How do I add code to strip
Please refer to my Python code below. The output has extra space btwn the $ and the value. How do I add code to strip this white space. I have tried strip() but not sure how to put it in correctly. thanks
https://HighlevelFarLanservers.juliebaggett.repl.run Enter the year the car was made: 1963 Value of Ferrari GTO 250 in year 1963 was: $ 18500 main.py E saved 1 car_year = int(input("Enter the year the car was made: ")) 2 if car_year = 1962 and car_year = 1965 and car_year = 1969 and car_year = 1972 and car_year = 1976 and car year = 1981 and car_year = 1986 and car_year = 2013 and car_year 2014: value = 'Not yet determined.' print("Value of Ferrari GTO 250 in year", car_year, "was: $", value)Step by Step Solution
There are 3 Steps involved in it
Step: 1
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