Question: luke.py Do NOT use elif statement or nested if - else statement for this assignment. You should only need one single if - else statement
luke.py
Do NOT use elif statement or nested ifelse statement for this assignment. You should only need one single ifelse statement at most points will be deducted if more than one single ifelse statement is used or the dictionary is changed
Create a program, luke.py using the following dictionary:
relations Darth Vader':'father', 'Leia':'sister', 'Han':'brother in law', RD:'droid', 'Rey':'Padawan', 'Tatooine':'homeworld'
The program will take one argument, corresponding to one of the relations keys. The program will print out the statement:
Luke I am your x
Where x the relationship.
For example:
If the argument is Leia, it should print Luke I am your sister
If the key is Darth Vader it should instead print No I am your father
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
