Your friend is working on an app for jobseekers. She sends you this bit of code: name "Tim Tester" age 20 skilll "python" level1 = "beginner" skil12"java" level2 = "veteran" skill3 "programming" level3 "semiprofessional" lower = 2000 upper 3000 print("my name is ", name, ", I am ", age, "years old") print("my skills are") print(" ", skilll, (", level1, ")") print(" ", skil12, "(", level2, ")") print("-", skil13, " (", level3, ")") print("I am looking for a job with a salary of", lower, The program should print out exactly the following: my name is Tim Tester, I am 20 years old my skills are python (beginner) " - java (veteran) - programming (semiprofessional) I am looking for a job with a salary of 2000-3000 euros per month upper, "euros per mo The code works almost correctly, but not quite. This exercise has very strict tests, which check the output for every single bit of whitespace. Please fix the code so that the printout looks right. Notice especially how the comma notation in the print command automatically inserts a space around the different comma-separated parts. Sample output The easiest way to transform the code so that it meets requirements is to use f- strings. 1 2 name = "Tim Tester" 3 age = 20 4 skilll "python" Hint: you can print an empty line by adding an empty print command, or by adding the newline character \n into your string. Do remember to be extra careful when formatting printouts also in the future on this course. Some of the exercises have tests that require your output to be exactly as specified in the examples given. For example, please use actual whitespace characters in your code, instead of ASCII character codes for whitespace, or some such. 5 level1 "beginner" 6 skill2 = "java" 7 level2= "veteran" 8 skill3 "programming" level3 = "semiprofessional" E 9 10 lower = 2000 11 upper = 3000 12 print (f"my name is (name), I am {age} years old\n") 13 print("my skills are") 14 print (f" (skill1} ({level1])") 15 print (f"- {skill2} ({level2))") 16 print (f" (skil113) ({level3})\n") 17 print (f"I am looking for a job with a salary of (lower}-{upper}, euros per month")

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Your friend is working on an app for job seekers. She sends you this bit of code as shown in the first photo:

My edits on the already established code are made starting from lines 12-17, however, there is an error message that the lines regarding python (beginner) are incorrect on line 14. See the bottom of the first photo for a reference as to where I made my revisions.

The second photo informs me that I have incorrectly written the code according to Python MOOC 2023, and I'm unsure how to fix my mistake. Please help me. I realise this looks like a portion of a graded assignment; however, this is not from any official university or school content. This is a Python course from the University of Helsinki 2023, which is a free resource that is available to anyone that is interested in learning the programming language in depth.

Test Results
FAIL: PythonEditor Test: test_print_1
Need help?
: Output in row 4 is incorrect, Output was:
python (beginner)
Please note that there is a space at the beginning of the row!
PASS: PythonEditor Test: test_print_2
Close
Transcribed Image Text:Test Results FAIL: PythonEditor Test: test_print_1 Need help? : Output in row 4 is incorrect, Output was: python (beginner) Please note that there is a space at the beginning of the row! PASS: PythonEditor Test: test_print_2 Close
Extra space
Your friend is working on an app for jobseekers. She sends you this bit of code:
name = "Tim Tester"
age = 20
skilll "python"
level1 = "beginner"
skil12= "java"
level2 = "veteran"
skill3 = "programming"
level3 = "semiprofessional"
lower 2000
upper 3000
print("my name is ", name, ", I am ", age, "years old")
print("my skills are")
print("-", skilll, " (", level1, ")")
print("-", skil12, "(", level2, ")")
print("-", skill3, " (", level3, ")")
print("I am looking for a job with a salary of", lower, "-", upper, "euros per mc
The program should print out exactly the following:
my name is Tim Tester, I am 20 years old
my skills are
- python (beginner)
- java (veteran)
- programming (semiprofessional)
I am looking for a job with a salary of 2000-3000 euros per month
The code works almost correctly, but not quite. This exercise has very strict tests,
which check the output for every single bit of whitespace.
Please fix the code so that the printout looks right. Notice especially how the comma
notation in the print command automatically inserts a space around the different
comma-separated parts.
The easiest way to transform the code so that it meets requirements is to use f-
strings.
Sample output
Hint: you can print an empty line by adding an empty print command, or by adding
the newline character \n into your string.
1
2 name = "Tim Tester"
3 age = 20
4
skill1= "python"
5 level1 = "beginner"
6 skill2 = "java"
U/1
Do remember to be extra careful when formatting printouts also in the future on this
course. Some of the exercises have tests that require your output to be exactly as
specified in the examples given. For example, please use actual whitespace characters
in your code, instead of ASCII character codes for whitespace, or some such.
7 level2 = "veteran"
8 skill3 = "programming"
9
10
level3 = "semiprofessional"
lower 2000
11 upper 3000
12 print (f"my name is {name}, I am {age} years old\n")
13 print("my skills are")
14 print (f"- {skill1} ({level1})")
15 print (f"- {skill2} ({level2})")
16 print (f"- {skill3} ({level3})\n")
17 print (f"I am looking for a job with a salary of (lower}-{upper}, euros per month"
Transcribed Image Text:Extra space Your friend is working on an app for jobseekers. She sends you this bit of code: name = "Tim Tester" age = 20 skilll "python" level1 = "beginner" skil12= "java" level2 = "veteran" skill3 = "programming" level3 = "semiprofessional" lower 2000 upper 3000 print("my name is ", name, ", I am ", age, "years old") print("my skills are") print("-", skilll, " (", level1, ")") print("-", skil12, "(", level2, ")") print("-", skill3, " (", level3, ")") print("I am looking for a job with a salary of", lower, "-", upper, "euros per mc The program should print out exactly the following: my name is Tim Tester, I am 20 years old my skills are - python (beginner) - java (veteran) - programming (semiprofessional) I am looking for a job with a salary of 2000-3000 euros per month The code works almost correctly, but not quite. This exercise has very strict tests, which check the output for every single bit of whitespace. Please fix the code so that the printout looks right. Notice especially how the comma notation in the print command automatically inserts a space around the different comma-separated parts. The easiest way to transform the code so that it meets requirements is to use f- strings. Sample output Hint: you can print an empty line by adding an empty print command, or by adding the newline character \n into your string. 1 2 name = "Tim Tester" 3 age = 20 4 skill1= "python" 5 level1 = "beginner" 6 skill2 = "java" U/1 Do remember to be extra careful when formatting printouts also in the future on this course. Some of the exercises have tests that require your output to be exactly as specified in the examples given. For example, please use actual whitespace characters in your code, instead of ASCII character codes for whitespace, or some such. 7 level2 = "veteran" 8 skill3 = "programming" 9 10 level3 = "semiprofessional" lower 2000 11 upper 3000 12 print (f"my name is {name}, I am {age} years old\n") 13 print("my skills are") 14 print (f"- {skill1} ({level1})") 15 print (f"- {skill2} ({level2})") 16 print (f"- {skill3} ({level3})\n") 17 print (f"I am looking for a job with a salary of (lower}-{upper}, euros per month"
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education