Skip to content
Snippets Groups Projects
Commit d5d0d7e0 authored by AG2172's avatar AG2172
Browse files

Loop exercise

parents
Branches main
No related tags found
No related merge requests found
Loop.py 0 → 100644
first_name = input("Enter first name: ")
last_name = input("Enter last name: ")
for _ in first_name:
print(first_name[0], end='')
print(' ', end='')
reversed_name = ''
for char in last_name:
reversed_name = char + reversed_name
print(reversed_name)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment