Answers for "print python syntax"

1

print python

#try it :)
print("Hello, world!")

#or 

#you can print variable
name = "Harry"
print(name)


name = "Harry";print(name) #all on the same line
Posted by: Guest on September-17-2020
1

what is print in python

A print funtion is a way to print data in the console
use:
print("Hello World")
x = "Hello World"
print(x)
x = 5 + 5
print(str(x))
Posted by: Guest on August-26-2020
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
2

print in python

words = 'Hello', 'World', 'Python', 'makes', 'life', 'easier'
print(*words, sep='\n')
Posted by: Guest on September-20-2020
1

python print

# Name
Harry = "Harry"
# Age
my_age = 8
# Math Problem
math = 4
problem = 9
print(Harry,my_age,math * problem)
Posted by: Guest on October-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language