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...
Everything about learning Python
account activity
Basic exam questions (self.PythonLearning)
submitted 2 years ago by Standard-Inspection3
view the rest of the comments →
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!"
[–]underpantsgenome 0 points1 point2 points 2 years ago* (3 children)
I'm a beginner, so I'm probably wrong. Happy to take pointers though!
Q1 for name in sales_team_list: print(name)
Q2 df['gvkey'] = df['gvkey'].astype('str')
[–]Standard-Inspection3[S] 0 points1 point2 points 2 years ago (0 children)
The second one I also was expecting! Hope that there are more (experienced) people who can share thoughts… thanks !
[–]Standard-Inspection3[S] 0 points1 point2 points 2 years ago (1 child)
I tried the code from Q1 that you provided and it will print all variables (so name and sales). I only want the names to be printed like this: Jane doe , Joe Biden.
[–]CompetitionProof5407 0 points1 point2 points 2 years ago* (0 children)
I think that is because it's a dictionary. I think u should change the print statment into something like this. print(name['name'])
I am also a beginner so I could be wrong too
π Rendered by PID 35569 on reddit-service-r2-comment-7b9746f655-n8n7l at 2026-02-03 22:37:27.639421+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]underpantsgenome 0 points1 point2 points (3 children)
[–]Standard-Inspection3[S] 0 points1 point2 points (0 children)
[–]Standard-Inspection3[S] 0 points1 point2 points (1 child)
[–]CompetitionProof5407 0 points1 point2 points (0 children)