Your friend is working on an app for jobseekers. She sends you this bit of code: name = "Tim Tester" age 20 skill1= "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," (", levell, ")") print("", skil12," (", level2, ")") print(" ", ski113," (", 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 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. 1 2 name = "Tim Tester" upper, "euros per m Hint: you can print an empty line by adding an empty print command, or by adding the newline character \n into your string. 3 age = 20 4 skill1= "python" "beginner" 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 6 skill2 = "java" 7 level2= "veteran" 8 skill3 9 level3 = "semiprofessional" 10 lower = 2000 11 upper = 3000 12 13 14 15 16 Sample output "programming" print("my name is ", name, print("my skills are") ▶ , I am ", age, "years old") print(" ", skill1, ", skill1, " (", level1, ")") print("", skill2, " (", level2, ")") 17 print("-", skill3, " (", level3, ")") 18 print("I am looking for a job with a salary of", lower, "-", upper, "euros per month"
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
Can you use Python
Thank you very much!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images