Aug-06-2019, 07:52 PM
ok for once this is not for homework but to make my output look better
this is part of my assignment which I think is pretty easy this week. When I print it out I want to have some space between each set of FAQ/answers
like this:
current output:
Question:
Answer:
I want :
Question:
Answer:
Also when I print the dictionary they will all be on top of each other so I want to space that aswell.
Thanks in advance. Again this is not part of the homework it comes out just like it should for school work purposes I just want it cleaner
1 2 3 4 |
elif option = = 3 : for item in FAQ: print ( "Question: " , item) print ( "Answer: " , FAQ[item]) |
like this:
current output:
Question:
Answer:
I want :
Question:
Answer:
Also when I print the dictionary they will all be on top of each other so I want to space that aswell.
Thanks in advance. Again this is not part of the homework it comes out just like it should for school work purposes I just want it cleaner