43-Print_Dictionary_plain_and_simple.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet

def main():
    #create a dictionary to store teachers and the subject they teach
    teacher_details={"Mr Moose":"Philosophy","Mrs Snib":"Computing","Mr Marvin":"History","Mrs Coonpoonzing": "Art"}
    print(teacher_details)

main()
                    

Try it yourself