I am currently using sublime text 3. I am trying to prompt the user for a string, check the string length and store that string, however I run into "NoneType error" when I try it. It currently looks like this.
from cs50 import get_string
while True:
name_input = get_string("Welcome to Ocorn, a text-based RPG.\nChoose a name between 1 and 10 characters: ")
if len(name_input) <= 10 and len(name_input) >= 1:
break
player.name = name_input