Jul-14-2021, 03:57 PM
(This post was last modified: Jul-14-2021, 03:58 PM by deanhystad.)
You are comparing a str (answer) and a float (user_answer). They will never be equal. Leave the user input as a str and compare the strings.
Division calcuation with answers to 1decimal place.
|
Jul-14-2021, 03:57 PM
(This post was last modified: Jul-14-2021, 03:58 PM by deanhystad.)
You are comparing a str (answer) and a float (user_answer). They will never be equal. Leave the user input as a str and compare the strings.
|
|
Messages In This Thread |
Division calcuation with answers to 1decimal place. - by sik - Jul-14-2021, 03:31 PM
RE: Division calcuation with answers to 1decimal place. - by deanhystad - Jul-14-2021, 03:57 PM
RE: Division calcuation with answers to 1decimal place. - by sik - Jul-14-2021, 04:26 PM
RE: Division calcuation with answers to 1decimal place. - by DeaD_EyE - Jul-15-2021, 08:15 AM
|