0
HELP USING ARRAY AS ARGUMENT 'AT THE VERY BOTTOM OF THE CODE'
2 Respostas
+ 1
Please, save your code in "Code Playgroun" section and post here his link
+ 1
If I understood you correctly, you want to fix parts of code that look like this:
if int(Personality_Score) == range(10,19):
So you want to check if int(Personality Score) is between 10 and 19? The you can do this:
if 10 <= int(Personality_Score) <= 19:
OR,
if int(Personality_Score) in range(10, 20):
I personally prefer the first option.
Note: range(10, 20) gives the numbers between 10 and 19. 20 is not included.