Practice 17.2 help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Practice 17.2 help

Don’t understand what to do next. Cant get it to do both #1 and #2 correctly at the same time. Please help, thanks! https://sololearn.com/coach/1032/?ref=app

20th Mar 2021, 3:30 AM
Zach Z
9 Answers
+ 1
Zach Z 1 - don't print Hard Code value. Input will take care self. 2 - Don't convert age input value to int because we are concatenating with string.
20th Mar 2021, 4:30 AM
A͢J
A͢J - avatar
+ 3
Remove or comment out these lines; # name = "Dave" # age = "22" edit: also, either remove the int() around the input or convert age back to a str()
20th Mar 2021, 4:13 AM
ChaoticDawg
ChaoticDawg - avatar
20th Mar 2021, 4:47 AM
Zach Z
+ 1
Zach Z Show your code.
20th Mar 2021, 4:00 AM
A͢J
A͢J - avatar
+ 1
You may want to be more specific. There is more than 1 practice 17.2 (just providing a link won't work). Also, you might want to describe the issue you're having and share your code so that people can actually help you.
20th Mar 2021, 4:02 AM
ChaoticDawg
ChaoticDawg - avatar
0
sorry im new thought the link might take you there. python for beginners - 17.2 practice - working with inputs name = input() age = int(input()) name = "Dave" age = "22" print(name + " is "+age+" years old") when I add Anna and 63, the #2 inputs it just prints those and then says #1 is wrong. wont let me pass it. thanks for the help!
20th Mar 2021, 4:08 AM
Zach Z
0
I dont know how to make this puzzle work.
23rd Jun 2021, 12:16 AM
Cory Peitsch
Cory Peitsch - avatar
0
I can get test case #1 to work or #2, not both
23rd Jun 2021, 12:17 AM
Cory Peitsch
Cory Peitsch - avatar
0
Just create input() for name and age. Don't write there any kind of names like Anna or Dave. It will work , copy text bellow: name = input() age = input() print(name + " is "+age+" years old")
17th Feb 2022, 1:06 PM
Ramsey
Ramsey - avatar