Python Forum
Post IF Statement Input
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post IF Statement Input
#3
Why convert input to an int? Are you doing math? If you don't need need a number variable why go to the extra hassle of using a number variable.

If your program converts C to F or F to C why does the user have to enter 1 or 2? Why not have the user enter F or C

The problem description mentions 2 options but your program has 3. You can convert from F to C, from C to F, or not do any conversion at all. Is that what you want?
Reply


Messages In This Thread
Post IF Statement Input - by OrphanedSoul - Jun-04-2021, 01:49 AM
RE: Post IF Statement Input - by OrphanedSoul - Jun-04-2021, 02:05 AM
RE: Post IF Statement Input - by deanhystad - Jun-04-2021, 05:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  if/else statement only outputs else statement regardless of input KameronG 2 2,654 Feb-08-2019, 08:04 AM
Last Post: KameronG
  Help Formatting Print Statement (input from 3 lists) X 2 Hebruiser 11 6,385 Dec-06-2017, 04:47 PM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

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