Created
March 27, 2024 18:33
-
-
Save makwanadeepam/5c6b5b04ae186e3a09752d4e406855b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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