Python Forum
Division calcuation with answers to 1decimal place.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Division calcuation with answers to 1decimal place.
#3
(Jul-14-2021, 03:57 PM)deanhystad Wrote: 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.

Thank you so much!
Reply


Messages In This Thread
RE: Division calcuation with answers to 1decimal place. - by sik - Jul-14-2021, 04:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  'answers 2' is not defined on line 27 0814uu 4 839 Sep-02-2023, 11:02 PM
Last Post: 0814uu
  place 2 windows exactly above each other janeik 3 1,023 Jul-23-2023, 03:12 AM
Last Post: deanhystad
  Division questions Dionysis 5 1,168 Feb-14-2023, 02:02 PM
Last Post: Dionysis
  Division by zero and value of argument Lawu 5 3,365 Jul-01-2022, 02:28 PM
Last Post: Lawu
  Floor division problem with plotting x-axis tick labels Mark17 5 2,243 Apr-03-2022, 01:48 PM
Last Post: Mark17
  Cannot 'break' from a "for" loop in a right place tester_V 9 4,144 Feb-17-2021, 01:03 AM
Last Post: tester_V
  Cannot Assign right Answers To Shuffled Questions Boblows 6 2,869 Jan-22-2021, 09:41 AM
Last Post: buran
  Floor division return value Chirumer 8 3,996 Nov-26-2020, 02:34 PM
Last Post: DeaD_EyE
  Integer division plozaq 2 2,057 Sep-28-2020, 05:49 PM
Last Post: plozaq
  Overcoming ZeroDivisionError: division by zero Error dgrunwal 8 5,230 Jun-12-2020, 01:52 PM
Last Post: dgrunwal

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020