import task_variables_04
A school uses the first letter of each student’s first and last name as an ID. Amara Okafor’s ID would be “A.O.”.
Write a Python program to build Amara’s ID step by step.
first_name and set it to “Amara”.last_name and set it to “Okafor”.first_name using first_name[0] and store it in a variable called first_letter.last_name using last_name[0] and store it in a variable called last_letter.+ operator, and store it in a variable called name_initials.name_initials. Hint: You can use + to glue (concatenate) strings together. For example: first_letter + “.” + last_letter. Do not use f-strings.
We’re always looking for international STEM educators to join our team. If you are interested, please send us a mail and we’ll get back to you!
If you have any questions, kindly send us a mail. Don’t forget to follow and like all our social accounts to get updates on competitions!
