Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

f string python

# f-string is a format for printing / returning data
# It helps you to create more consise and elegant code

########### Example program ##############

# User inputs their name (e.g. Michael Reeves)
name = input()
# Program welcomes the user
print(f"Welcome to grepper {name}")

################ Output ################

""" E.g. Welcome to grepper Michael Reeves """
 
PREVIOUS NEXT
Tagged: #string #python
ADD COMMENT
Topic
Name
9+9 =