Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Hara Gopal K
Courses Plus Student 10,027 Pointssoccer_league: printing personalized letters [SOLVED]
i am in the last part of the project. at the end of the 2nd function i had a tuple of dictionaries that will be passed to the last function eventually for writing into the files...
i have difficulty printing the name of the team in the letter (the name of the dictionaries in this case) after i pass the tuple from the previous function. can someone help me with this. following is how the tuple looks like with 3 dictionaries in it
master_tuple = sharks, dragons, raptors
James J. McCombie
Python Web Development Techdegree Graduate 21,199 Pointsis there a key in the dictionary with a value of the team name?
or are you asking to print the variable name itself? The thing that is pointing to a dictionary object? like you wrote somewhere, sharks = {key: value.......key, value}, and you want to get sharks as say a string to print, which is not usually something that is done.
Hara Gopal K
Courses Plus Student 10,027 PointsThank you james and Choe,
I got the answer, as you guessed, i was trying to print the name of the variable itself. but i fixed it now.
Thank You Hara
Cheo R
37,150 PointsCheo R
37,150 PointsWhat are the contents of each dictionary?