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.
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.
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fad1f2942-ad4d-4b6f-9c72-90c23d5f4c96%2Ffcfed375-d27b-4b58-9363-d976cfc502b7%2Fnfoe6zp_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)