Answers for "call a function in print python"

1

python print function

print('Hello,World!')
Posted by: Guest on March-20-2021
0

print function python

print('datacamp','tutorial','on','python','print','function',sep='n') #`n` will put each word in a new line
Posted by: Guest on April-17-2021
0

print function in python

2 + 1
#Addition is done by Python, but doesn't show us the answer

print(2 - 1)
#output - 1 (This will solve and show us the answer, 2,1 and 3 all are integers)

x = 2 * 1
print(x)
#output - 2 (We have printed the varible and got the answer, all are integers)

x = 2
y = 1
print(x / y)
#output - 2.0 (When division is done answer is given as a float)

x = "2"
y = "1"
print(x + y)
#output - 21 (When two strings are added, it concatenate and the answer 
# is also a string)
Posted by: Guest on December-16-2021

Code answers related to "call a function in print python"

Python Answers by Framework

Browse Popular Code Answers by Language