I am currently taking a pyton programming class and having some extreme difficulties. I am in quite the pickle with these 3 prompts. I do not know where to start for any of these prompts; if anyone has any code or solutions to any of these three promps I will be very grateful.
Write a program that creates a dictionary of son-father pairs, you can use celebrities, fictional characters, or even historical figures for fun. Your program should present the user a menu with three options. The following is an example.
0 - Quit
1 - Find a Father
2 - Find a Grandfather
Option 0 should end the program.
Option 1 should prompt the user for the name of a son. If the dictionary contains the son-father pair, the program should display the father. Otherwise, the program should tell the user it doesn't know who the father is.
Option 2 should prompt the user for the name of a grandson. If the dictionary contains enough information, the program should display the grandson's grandfather. Otherwise, the program should tell the user it doesn't know who the grandfather is.
The dictionary you create should include several geneartions so that a grandfather can be found given the name of a grandson.
Write a program to sort a list of numbers using the insertion sort algorithm (one of the many sorting algorithms). Given a list, insertion sort works by taking elements from the list one by one and ...