Python Forum
def functions creation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
def functions creation
#11
Besides the syntax errors, the calculation seems wrong. Do you even need if, elif and else in the first place? Again, how would you do the calculation on paper? Are you sure the expected values on lines 23 and 26 are correct (particularly 26)?

To stop us guessing, it might actually help if you posted the text of your assignment verbatim.
Reply


Messages In This Thread
def functions creation - by samh625 - Jun-19-2020, 10:59 AM
RE: def functions creation - by pyzyx3qwerty - Jun-19-2020, 02:32 PM
RE: def functions creation - by ndc85430 - Jun-19-2020, 03:09 PM
RE: def functions creation - by samh625 - Jun-19-2020, 10:09 PM
RE: def functions creation - by samh625 - Jun-19-2020, 03:10 PM
RE: def functions creation - by ndc85430 - Jun-20-2020, 03:10 AM
RE: def functions creation - by samh625 - Jun-20-2020, 03:28 PM
RE: def functions creation - by Yoriz - Jun-20-2020, 03:40 PM
RE: def functions creation - by ndc85430 - Jun-21-2020, 08:29 AM
RE: def functions creation - by samh625 - Jun-21-2020, 08:35 AM
RE: def functions creation - by ndc85430 - Jun-21-2020, 08:43 AM
RE: def functions creation - by samh625 - Jun-26-2020, 09:56 AM
RE: def functions creation - by pyzyx3qwerty - Jun-26-2020, 02:46 PM
RE: def functions creation - by DeaD_EyE - Jun-26-2020, 04:24 PM
RE: def functions creation - by samh625 - Jun-26-2020, 10:29 PM
RE: def functions creation - by TGH - Jun-30-2020, 08:28 PM
RE: def functions creation - by niusia - Jul-17-2020, 04:57 PM

Forum Jump:

User Panel Messages

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