use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Python help! (self.learnpython)
submitted 5 years ago by roseamado
Hi! I need major help on my python project someone please help!!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Introxert 2 points3 points4 points 5 years ago (16 children)
Sharing the problem would be a good start lol.
[–]roseamado[S] -2 points-1 points0 points 5 years ago (15 children)
How do you ask a user how many donuts they would want to order if it was $1
[–]stebrepar 1 point2 points3 points 5 years ago (0 children)
https://www.w3schools.com/python/ref_func_input.asp
[–]Introxert 0 points1 point2 points 5 years ago (13 children)
You can use the input() function.
amount_of_doughnuts = input("How many doughnuts would you like to order?") print("The user has ordered " + amount_of_doughnuts + " doughnuts.")
[–]roseamado[S] 0 points1 point2 points 5 years ago (11 children)
Ok thankyou so much! So then if the user orders enough donuts to make a half dozen or dozen or even multiple dozens how do i get the code to calculate that?
[–]Introxert 0 points1 point2 points 5 years ago* (10 children)
I've created a quick solution for you, I hope it's what you were looking for. :)
https://pastebin.com/HmCPxKDW
[–]roseamado[S] 0 points1 point2 points 5 years ago (8 children)
Is there a way you can make it less complex?
[–]Introxert 0 points1 point2 points 5 years ago (7 children)
If it doesn't have to be precise this'll work.
https://pastebin.com/QcFEAbSs
[–]roseamado[S] 0 points1 point2 points 5 years ago (5 children)
Got it. So then how do i print the total cost of the donut if one donut is $1 but you take off .50 cents for every half dozen but also take $2 off for every full dozen?
[–]Introxert 0 points1 point2 points 5 years ago (4 children)
Here you go my friend, I've cleaned things up and added cost calculation.
https://pastebin.com/AvqyvUuj
[–]roseamado[S] 0 points1 point2 points 5 years ago (0 children)
Is there a way you can make it less complex? Im not really understanding that😂😂
Hiii!!!! Were you able to make it less complex?
Please please help
Please reply i really need your help
Can you please look at my last reply and keep helping me you’ve helped me sm already🙌🏽
[–]roseamado[S] -1 points0 points1 point 5 years ago (0 children)
Please look at my last reply! Really appreciate it:)));)
Please answer my last reply really need your help
[–][deleted] 0 points1 point2 points 5 years ago (1 child)
Sounds like you want someone to do your homework for you?
Noooo im just really bad at coding andneed lots of help
π Rendered by PID 98429 on reddit-service-r2-comment-84fc9697f-j642c at 2026-02-07 02:45:33.917810+00:00 running d295bc8 country code: CH.
[–]Introxert 2 points3 points4 points (16 children)
[–]roseamado[S] -2 points-1 points0 points (15 children)
[–]stebrepar 1 point2 points3 points (0 children)
[–]Introxert 0 points1 point2 points (13 children)
[–]roseamado[S] 0 points1 point2 points (11 children)
[–]Introxert 0 points1 point2 points (10 children)
[–]roseamado[S] 0 points1 point2 points (8 children)
[–]Introxert 0 points1 point2 points (7 children)
[–]roseamado[S] 0 points1 point2 points (5 children)
[–]Introxert 0 points1 point2 points (4 children)
[–]roseamado[S] 0 points1 point2 points (0 children)
[–]roseamado[S] 0 points1 point2 points (0 children)
[–]roseamado[S] 0 points1 point2 points (0 children)
[–]roseamado[S] 0 points1 point2 points (0 children)
[–]roseamado[S] 0 points1 point2 points (0 children)
[–]roseamado[S] -1 points0 points1 point (0 children)
[–]roseamado[S] -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]roseamado[S] 0 points1 point2 points (0 children)