Skip to content

Instantly share code, notes, and snippets.

@makwanadeepam
Created March 27, 2024 18:33
Show Gist options
  • Save makwanadeepam/5c6b5b04ae186e3a09752d4e406855b7 to your computer and use it in GitHub Desktop.
Save makwanadeepam/5c6b5b04ae186e3a09752d4e406855b7 to your computer and use it in GitHub Desktop.
# Using Print
print("Hello World!")
print("Hello", "World!")
print("Hello"+"World!")
print("hello"*3)
try:
print("hello"+3)
except:
print("Error")
print(type("Hello"))
print("Hello", "There", "World", sep=" - ")
print("Hello", "World", end="\n\n\n")
print(
"Hello",
"World",
"Hi",
"There"
)
# Using F-strings
name="Deepam"
print(f"Hello, {name}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment