Advertisement
sissou123

Untitled

Mar 27th, 2022
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. Python Print Variable – How to Print a String and Variable
  2. How to use the print() function in Python
  3. To print anything in Python, you use the print() function – that is the print keyword followed by a set of opening and closing parentheses,().
  4.  
  5. #how to print a string
  6. print("Hello world")
  7.  
  8. #how to print an integer
  9. print(7)
  10.  
  11. #how to print a variable
  12. #to just print the variable on its own include only the name of it
  13.  
  14. fave_language = "Python"
  15. print(fave_language)
  16.  
  17.  
  18. #output
  19.  
  20. #Hello world
  21. #7
  22. #Python
  23. FOR MORE:https://www.clictune.com/eAjK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement