Skip to content

Instantly share code, notes, and snippets.

a = 3
b = 5
c = a * b
print(c)
a = 3
b = 5
c = a + b
print(c)
a = input("What are your views on the blog?")
print(a)
a = int(input("enter a:"))
b = int(input("enter b:"))
c = int(input("enter c:"))
d = a + b + c
print(d)
a = input("enter your full name: ")
b = int(input("enter your roll number: "))
c = input("enter your field of interest: ")
print(f"Hey, my name is {a} and my roll number is {b}. My field of interest is {c}")
if a==2:
print("a is 2")
elif a==3:
print("a is 3")
elif a==4:
print("a is 4")
else:
print("I don't know")
list = ["USA", "UK", "Spain", "India", "Portugal", "Bangladesh", "Brazil"
print(list)
dictionary = {{{"item1" : "pen", "iten2": "rose", "item3": "ice cream"}}}
dictionary["item4"] = "book"
dictionary.pop("item1")
print(dictionary)