Python Forum
simple function problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple function problem
#4
Is this assignment actually worded like that? The text says you get a discount "on pear" when you buy MORE than 10 melons but the example code only buys 10 melons so it never triggers the discount. Did you mean "10 or more"? Also, it reads like you get discount on any amount of pears after you buy 10 melons. Seems like you should only get a discount on ONE pear for every 11 (or is it 10?) melons. That's a bit more complicated to code so make sure you're explaining the question correctly.

And where can you buy pears cheaper than melons anyway??? Think
Reply


Messages In This Thread
simple function problem - by stereokim123 - Apr-25-2021, 03:22 PM
RE: simple function problem - by Yoriz - Apr-25-2021, 03:30 PM
RE: simple function problem - by raarkil - Apr-30-2021, 01:03 PM
RE: simple function problem - by Marbelous - May-03-2021, 03:21 PM
RE: simple function problem - by Kaaper - May-05-2021, 04:32 PM
RE: simple function problem - by naughtyCat - Aug-26-2021, 04:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple animation -- time evolution of function schniefen 0 1,099 Nov-20-2022, 08:05 PM
Last Post: schniefen
  I have a simple problem ahmed 5 2,634 Jul-17-2021, 02:50 PM
Last Post: ahmed
  Simple problem with functions and returns danlopek14q 10 7,041 Mar-17-2021, 05:32 PM
Last Post: danlopek14q
  Problem with a simple script Niko047 2 3,405 Jul-21-2017, 09:02 PM
Last Post: Niko047

Forum Jump:

User Panel Messages

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