Answers for "print a function code in python"

1

print in python

# Simple Print:
print("Hello World!")

# Formatting message in python3.6- :
name = "World"
print("Hello {}!".format(name))

# Formatting message in python3.7+ :
name = "World"
print(f"Hello {name}!")
Posted by: Guest on October-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language