In this assignment, you will ask the user questions about their name and location and turn it into a Sci-Fi sounding name
1) Ask the user for a first name. Move the last two characters to the front and print the result.
Target behavior: “Daniel” → “elDani”
Hints: Use slicing like my_string[3:6] and concatenation with +.
2) Make it look like a proper name. Capitalize and print again.
Target behavior: “elDani” → “Eldani”
Hints: Use .capitalize() after you build the string.
3) Insert one apostrophe in a fixed spot of the first name and print.
Target behavior: put “‘” after the 2nd character, for example “El’dani”.
Hints: s = s[:2] + “‘” + s[2:].
4) Ask for a last name. Do the same kind of transform as step 1–3, but keep it as a separate last name. Print the two-part name together.
Target behavior (example): first=”Daniel” → “El’dani”; last=”Bernoulli” → rotate last two → “libernou” → capitalize → “Libernou”; print “El’dani Libernou”.
5) Randomize how many characters you move from the end to the front (instead of always moving 2). Do this for the first name, then for the last name, and print the two-part name.
Target behavior: if first=”Daniel”, moving 3 → “ielDan” → “Ieldan”; if last=”Bernoulli”, moving 4 → “oullibern” → “Oullibern”; print “Ieldan Oullibern”.
Hints: import random and use random.randint(a, b).
6) Add one letter from a “sci-fi” set to each name (first and last) at a fixed index and print.
Target behavior: letters like “vloxzqr”; insert one letter after the 2nd character in each name, e.g., “Elv’dani” and “Livo ullibern” (your exact result will vary depending on choices).
Hint: ch = random.choice(letters)
7) Ask for a place (city, country, planet). Build a separate planet/location name from only this place, then print the full line as: FirstName LastName of Planet.
Target behavior example: place=”Netherlands”
– move a few characters from the end to the front (you choose how many), add one apostrophe somewhere in the middle, then capitalize
– possible result: “Andsnether’l”
Print the final: El’dani Oullibern of Andsnether’l
Additional challenges (easier to harder; pick any you like)
a) Easy: instead of inserting the sci-fi letter at a fixed index (step 6), insert it at the end of each name.
b) Easy: if a name ends with a vowel, append one consonant of your choice; if it ends with a consonant, append one vowel.
c) Medium: make favorite letters more likely by repeating them in the pool (for example “vllooxzqr” makes v and l show up more often).
d) Medium: put the sci-fi letter at a random position inside the name (not at the very start or end).
e) Medium: create a short list of mini-syllables like [“va”,”lo”,”xi”,”dra”,”kor”] and insert one of them into each name at a fixed index.
f) Hard: keep apostrophes from clumping; if two apostrophes end up next to each other, remove or move one.
g) Hard: reshape the planet to match a simple pattern like CV’CV (C = consonant, V = vowel) by swapping letters to the nearest match.
h) Extension: print a one-line backstory using your final first name, last name, and planet, for example: “El’dani Oullibern of Andsnether’l roams the outer rim.”