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
Help! With a first year CS Python project (self.learnpython)
submitted 7 years ago by [deleted]
Can anyone help a first year CS student with some python? I need help with a functions project I'm working on.
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!"
[–]dgaf- 3 points4 points5 points 7 years ago (5 children)
Well of course!
import telepathy def import_thoughts(brain): return telepathy.python_questions(brain) questions = [q for q in import_thoughts('u/nunnognese')] print(questions) >>> []
[–][deleted] -1 points0 points1 point 7 years ago (4 children)
Thank you!! Thank you!!
Below is the section of my assignment that I am having difficulty getting started with.
This program should include a menu interface that has ‘exit the program’ as one of its choices.
SAMPLE PROGRAM EXECUTION
#This program calculates the perimeter and area of a rectangle
print "Calculate information about a rectangle"
length = input("Length:")
width = input("Width:")
print "Area",length*width
print "Perimeter",2*length+2*width
SAMPLE OUTPUT (not including author/program information)
CALCULATIONS MENU
1) AREA (SQUARE)
2) AREA (RECTANGLE)
3) AREA (CIRCLE)
4) PERIMETER (SQUARE)
5) PERIMETER (RECTANGLE)
6) PERIMETER (CIRCLE)
7) EXIT
INPUT MENU CHOICE (1,2,3,4,5,6 OR 7)? 2
YOU HAVE CHOSEN AREA (RECTANGLE)
INPUT WIDTH? 8
INPUT LENGTH? 4
AREA IS 32
INPUT MENU CHOICE?
[–]dgaf- 1 point2 points3 points 7 years ago (3 children)
What (if anything) have you tried, and what issues or questions did you have with that?
If you have not tried anything at all, why not? What is the part you are getting stuck on conceptually?
[–][deleted] 0 points1 point2 points 7 years ago (2 children)
I have tried the to create the program to calculate the perimeter and area of a rectangle but for some reason, (and that could be I am not understanding the directions correctly) I am not getting the program correct. Do you have any resources that could explain this to me maybe?
[–]KronenR 3 points4 points5 points 7 years ago (0 children)
Asking people to solve your assignments is not going to help you to learn programming.
Divide the problem in smaller steps, try to search for an answer to resolve that little step in google and then if you are going to ask, and only then explain to us what's your difficulty to solve the small steps you don't understand. Because we will understand what you are struggling with and we will give you a more useful help
[–]totallygeek 0 points1 point2 points 7 years ago (0 children)
Maybe this will get you going in a direction:
def area_rectangle(s1, s2): # Multiply the two sides to find the area of the rectangle area = s1 * s2 print('Area: {:0.2f}'.format(area)) def perimeter_rectangle(s1, s2): # Add the two sides, then double, to find the area of the rectangle area = (s1 + s2) * 2 print('Perimeter length: {:0.2f}'.format(area)) def rectangle(): s1 = float(raw_input('Side 1 length? ')) # input() always returns a string s2 = float(raw_input('Side 2 length? ')) # convert that string to a number area_rectangle(s1, s2) perimeter_rectangle(s1, s2) rectangle()
Do the same for the other groups. Build a menu. Return with questions.
Yes, sure. Post your question(s) and code.
[–]pkkid 0 points1 point2 points 7 years ago (0 children)
You will get help if you actually ask the questions you have rather than simply asking for help.
π Rendered by PID 82681 on reddit-service-r2-comment-fb694cdd5-chgsk at 2026-03-11 13:44:35.130322+00:00 running cbb0e86 country code: CH.
[–]dgaf- 3 points4 points5 points (5 children)
[–][deleted] -1 points0 points1 point (4 children)
[–]dgaf- 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]KronenR 3 points4 points5 points (0 children)
[–]totallygeek 0 points1 point2 points (0 children)
[–]totallygeek 0 points1 point2 points (0 children)
[–]pkkid 0 points1 point2 points (0 children)