Hello I need help with this question on python Use for loop to print each letter of the first name • Additionally, the program should count number of letters in the name and should print 'number of letters in your first name is 7' use the functions len() and print(f'....) S a b r i n n a Number of letters in your name is 7 I am having a hard time to get it to look like this.

icon
Related questions
Question
Hello I need help with this question on python Use for loop to print each letter of the first name • Additionally, the program should count number of letters in the name and should print 'number of letters in your first name is 7' use the functions len() and print(f'....) S a b r i n n a Number of letters in your name is 7 I am having a hard time to get it to look like this.
File
+
Edit View
i
4
Insert
In [ ]: M
↑
↓
Cell Kernel Widgets
Run
сн
In [1]: first_name = input('Sabrina:')
for letter in first name:
print('s',
'r'.
Code
Heip
number_of_letters = len(first_name)
print (f'number of letters in your first name is {7}')
Sabrina:7
sabrina
number of letters in your first name is 7
Q Search
Transcribed Image Text:File + Edit View i 4 Insert In [ ]: M ↑ ↓ Cell Kernel Widgets Run сн In [1]: first_name = input('Sabrina:') for letter in first name: print('s', 'r'. Code Heip number_of_letters = len(first_name) print (f'number of letters in your first name is {7}') Sabrina:7 sabrina number of letters in your first name is 7 Q Search
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer