0

Morphic numbers

I don't know why i keep getting an error https://code.sololearn.com/cdHtQ45esnwv/?ref=app

19th Sep 2018, 5:14 AM
Daniel Fragomeli
Daniel Fragomeli - avatar
1 Resposta
+ 3
input() is a string by default. You need to convert it into an integer, otherwise you can't use **3 etc. => int(input()). Also, str(y) in line 3 will convert y into a string, but it won't change what the variable y contains. Replace it with y = str(y).
19th Sep 2018, 5:25 AM
Anna
Anna - avatar