Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python Print Variable – How to Print a String and Variable
- How to use the print() function in Python
- To print anything in Python, you use the print() function – that is the print keyword followed by a set of opening and closing parentheses,().
- #how to print a string
- print("Hello world")
- #how to print an integer
- print(7)
- #how to print a variable
- #to just print the variable on its own include only the name of it
- fave_language = "Python"
- print(fave_language)
- #output
- #Hello world
- #7
- #Python
- FOR MORE:https://www.clictune.com/eAjK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement