Question: What is wrong with the following code? def maino: get_age print(fAt {age}, you are half-way to {age * 2}) age = def get_age(): x =
What is wrong with the following code? def maino: get_age print(f"At {age}, you are half-way to {age * 2}") age = def get_age(): x = int(input("Age: ")) return x I main() A Something is wrong with the f-string in the print function B The variable in get_age must be called age, not x The get_age function breaches the Single Responsibility Principle (SRP) D None of the above - there are no problems with this code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
