0

HELP USING ARRAY AS ARGUMENT 'AT THE VERY BOTTOM OF THE CODE'

https://code.sololearn.com/cbcXiuuJaY63/?ref=app

3rd Oct 2018, 4:01 PM
Elijah Mcgrue
Elijah Mcgrue - avatar
2 odpowiedzi
+ 1
Please, save your code in "Code Playgroun" section and post here his link
3rd Oct 2018, 4:18 PM
KrOW
KrOW - avatar
+ 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.
3rd Oct 2018, 4:31 PM
Kishalaya Saha
Kishalaya Saha - avatar