xxxxxxxxxx
datacamp tutorial on python print function
xxxxxxxxxx
likes = 9999
print(f"A like if you love learning python with grepper. Likes:{likes}")
#or
print("A like if you love learning python with grepper. Likes:" + likes)
#or
print("A like if you love learning python with grepper. Likes:", likes)
xxxxxxxxxx
# You can use ' or "
# Print a text string in JavaScript
print('My text')
# Print a variable in JavaScript
my_variable = str('Text')
print(my_variable)
# Print a number in JavaScript
print(123)
xxxxxxxxxx
def i_will_print_with_a_diffrent_function(x):
print(x)
i_will_print_with_a_diffrent_function("my name")
xxxxxxxxxx
print("What you would like to print :D")
#And then it will print in my case "What you would like to print :D" in the output
xxxxxxxxxx
# the print commmand will write anything in your out put box
print("hello world")