print python
# 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)
print python
# 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)
print in python
words = 'Hello', 'World', 'Python', 'makes', 'life', 'easier'
print(*words, sep='\n')
print in python
# This prints out the value provided by the user
print("Hello World\n")
print in python
# Print statements in python
# A usual print() statement looks like this:
print("Hello from the print statement!")
# A print statement starts with print( , as it is a built-in function
# It contains any given value that can be printed to the console. (ex. "Hello!")
# It ends with a closed bracket
# A few more examples:
name = input("Enter a name :\n") # asks for a name
print(f"Your name is {name}") # Your name is <whatever name you entered>
print(1 + 2) # 3
print(not True and not False) # False
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us