print threeNum
b. check if index 0 is < 5
i. if threeNum[0] < 5, replace index 0 with the string: “small”
ii. else, replace index 0 with a string: “large”
c. print threeNum
i have to do this, but when i put the proper signs in, it throws a error at me. Any ideas for what i can do to fix it?
I Need Help...
print threeNum
b. check if index 0 is < 5
i. if threeNum[0] < 5, replace index 0 with the string: “small”
ii. else, replace index 0 with a string: “large”
c. print threeNum
i have to do this, but when i put the proper signs in, it throws a error at me. Any ideas for what i can do to fix it?
You forgot that you are comparing to an integer!
Your list type is a string
You are comparing an int
so it will never be true!
Change your code to:
or:
hey, thanks for the help.
@Coder100np
@dominicl645how have you been during COVID?
@Coder100good
@dominicl645thats good.
@Coder100thanks! You?
@dominicl645im ok. thx for asking.
@Coder100