Question 5: Variable Username Generator

🖥️ Username Generator

import task_variables_05

A bible club generates usernames by combining the student’s first and last name, separated by a dot, all in lowercase. Kofi Mensah would become “kofi.mensah”.
Write a Python program to build Kofi’s username step by step.

  • Store the first name in a variable called first_name and set it to “Kofi”.
  • Store the last name in a variable called last_name and set it to “Mensah”.
  • Make a lowercase version of the first name using .lower() and store it in a new variable called first_lower.
  • Make a lowercase version of the last name using .lower() and store it in a new variable called last_lower.
  • Combine them with a dot between them (first_lower + "." + last_lower) and store the result in a variable called username.
  • Print username.
Write what you are looking for, and press enter to begin your search!