0

Python problem

I saw this code from a person in sololearn. So I decided to make one too but there is some problem I don't know https://sololearn.com/compiler-playground/c4qvkgUPu4z2/?ref=app https://sololearn.com/compiler-playground/c4qvkgUPu4z2/?ref=app

27th Oct 2024, 1:39 PM
Myra
Myra - avatar
2 Answers
0
In sololearn you need to input all the inputs at once and then it will give you the desired output For ex Aysha 12 Abc Xyz 1234567890 Something like this. If you try in other ide you can give inputs when it is asking instead of giving all the inputs at once.
27th Oct 2024, 1:51 PM
Aysha
Aysha - avatar
0
Myra , regardless of the input procedure in sololearn playground that is already described, the program code still contains an issue. > to output the text information and the values in the variables, the string for the final output must be created as an f-string: print(f ''' Name = {a} Age = {b} ... ''') doing so, the string interpolation will work.
27th Oct 2024, 8:46 PM
Lothar
Lothar - avatar