I'm working on a very beginner's setup and have to print sentences using the following dictionaries:
ast = {
"number":6,"message":"success","people":
[{"name":"Sergey Ryazanskiy","craft":"ISS"},{"name":"Randy Bresnik",
"craft":"ISS"}, {"name":"Paolo Nespoli","craft":"ISS"}, {"name" :
"Alexander Misurkin","craft":"ISS"},{"name":"Mark Vande Hei","craft":"ISS"}
,{"name":"Joe Acaba","craft":"ISS"}]}
So I have to say something like:
Sergey Ryanzanskiy
- ISS
Randy Bresnik
- ISS
without bulletpoints (sorry, formatting) and am not sure how to refer to these keys. Additionally I have to create a sentence that will sum up the number of different crafts available but there is only one so I'm not sure how to create something to adjust to different names.
Help please!