Dec-09-2021, 10:48 AM
(This post was last modified: Dec-09-2021, 10:48 AM by new_coder_231013.)
Thanks to both of you. Two follow-up questions.
1 ) I'm getting an error message (see below) when I try to run the code deanhystad suggested. The error message has a caret symbol (^) pointing to the quotes at the end. Do either of you know why this is happening? I'm not sure if it has to do with the fact that my PyCharm is apparently using Python 3.4.
Line 3
print(f"Your weight in pounds is {weight * 2.2}")
SyntaxError: invalid syntax
2 ) Deanhystad, could you please explain what the [1] is or does in .lower()[1]? Is this simply a default value (and not necessary for the code to run correctly)?
Thanks again!
1 ) I'm getting an error message (see below) when I try to run the code deanhystad suggested. The error message has a caret symbol (^) pointing to the quotes at the end. Do either of you know why this is happening? I'm not sure if it has to do with the fact that my PyCharm is apparently using Python 3.4.
Line 3
print(f"Your weight in pounds is {weight * 2.2}")
SyntaxError: invalid syntax
2 ) Deanhystad, could you please explain what the [1] is or does in .lower()[1]? Is this simply a default value (and not necessary for the code to run correctly)?
Thanks again!