Hello I wonder if anybody was able to get a green light on this topic.
try removing that comma after
it works now!
num = int(num)
"num" must be int
Could you perhaps explain why? When iterating through a string you have to put a comma to print each character in its own line. Is it a general rule that you dont have to do that with lists?
well, obviously if you were coding it that would be the way to go, but since the user only creates one part of the for loop that you show here, it's easier to let the user make their own loop instead of having them edit an existing bit of code
It is a general rule that you don't have to do that as long as you are only printing one thing ("print 2, 3, 4, 5" is still useful).
Them specific rule is not in regards to lists, but strings.