+ 1

len function on variables?

Hello, I was trying to use the len function as written below: target = "12345" print(len(target)) but instead of getting 5, I got an error target is not defined, any tips?

27th Jul 2019, 4:10 PM
Steven Sim
Steven Sim - avatar
3 Answers
+ 3
This shouldn't be. Try this exact snippet again.
27th Jul 2019, 4:11 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Prometheus 🇸🇬 Thank you, I think I made a typo
27th Jul 2019, 4:13 PM
Steven Sim
Steven Sim - avatar
0
Prometheus 🇸🇬 Why is your profile CGP Grey?
28th Jul 2019, 9:51 PM
SpaceJunk
SpaceJunk - avatar