DAY 27(CODE INFINITY)

Today here is another question which is based on f string which we have done in previous blogs so Let's get started ..

Question: Write a program to insert  your name and age in the string.

Here is answer for this you can take help from this...

name = 'Tushar'  

age = 23  

print(f" Hello, My name is {name} and I'm {age} years old.") 

Screenshot for repel which shows how it give output:

Link of the repel:
https://replit.com/@shwetaantil97/insert-name-and-age-in-string


Comments

Popular posts from this blog