Knowee
Questions
Features
Study Tools

Incorrect program result --- Input ---402.510.95.2 Program output Expected output (exact text) Difference in OutputCost of A4sheet:Cost of pen:Traceback (most recent call last): File "Stationary.py", line 5, in <module> p=int(input())ValueError: invalid literal for int() with base 10: '2.5' Cost of A4sheet:Cost of pen:Cost of pencil:Cost of eraser:Items DetailsA4sheet:40.00Pen:2.50Pencil:10.90Eraser:5.20 Cost of A4sheet: Cost of pen: Traceback (mCost recof pent caill: Cost lof erast)er: FilItems "SDetationary.py", lins A4she 5, in <module&gt;:40.00 p=iPent(input()):2.50 ValuPeError: invalcid lite:10.90 Eral for int() with base 10r: '5.2.5'

Question

Incorrect program result --- Input ---402.510.95.2 Program output Expected output (exact text) Difference in OutputCost of A4sheet:Cost of pen:Traceback (most recent call last): File "Stationary.py", line 5, in <module> p=int(input())ValueError: invalid literal for int() with base 10: '2.5' Cost of A4sheet:Cost of pen:Cost of pencil:Cost of eraser:Items DetailsA4sheet:40.00Pen:2.50Pencil:10.90Eraser:5.20 Cost of A4sheet: Cost of pen: Traceback (mCost recof pent caill: Cost lof erast)er: FilItems "SDetationary.py", lins A4she 5, in <module>:40.00 p=iPent(input()):2.50 ValuPeError: invalcid lite:10.90 Eral for int() with base 10r: '5.2.5'

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

I'm sorry, but your request is not clear. Could you please provide more details or clarify what you need?

Similar Questions

Traceback (most recent call last): File "/piston/jobs/0c775e93-e6c7-44bd-ba6a-c7d9249119de/test.py", line 9, in <module> calories[day]=int(input())ValueError: invalid literal for int() with base 10: 'Day1'

Traceback (most recent call last): File "/piston/jobs/a1970589-c51d-42f5-9cca-7765985e65a9/test.py", line 10, in <module> n1=int(input())ValueError: invalid literal for int() with base 10: '12 30'

TypeError Traceback (most recent call last)Cell In[3], line 8 5 return "Fail" 7 marks_str = input("Enter the marks obtained in the exam: ")----> 8 marks = float(marks_str) 9 result = check_pass_fail(marks) 10 print(f"The student has {result}ed the exam.")TypeError: float() argument must be a string or a real number, not 'PyodideFuture'

Traceback (most recent call last): File "/piston/jobs/574143c7-995f-44a0-a56c-d26a7cb37e64/test.py", line 12, in <module> Cal(calories) File "/piston/jobs/574143c7-995f-44a0-a56c-d26a7cb37e64/test.py", line 3, in Cal calories[key]=int(calories[key])ValueError: invalid literal for int() with base 10: 'Day1'

Traceback (most recent call last): File "main.py", line 4, in <module> if (year % 4) == 0:TypeError: not all arguments converted during string formatting

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.