Skip to content

Instantly share code, notes, and snippets.

View ayush3298's full-sized avatar
🏠
Working from home

Ayush ayush3298

🏠
Working from home
View GitHub Profile
import setuptools
setuptools.setup(
name='helloworld',
version='1.0',
author='Ayush Bairagi',
author_email='test@example.com',
description='description',
packages=setuptools.find_packages(),
entry_points={
def main():
print('Hello World!')
pie = 3.14
#or
blog_name = "thefirstcode"
# string
blog_name = "The First Code"
# booleans
true_boolean = True
false_boolean = False
# float
price = 10.50
if 2 > 1:
#because 2 is greater then 1
print("2 is greater than 1")
if True:
print("Hello World! If")
#the code in if statement will only work if the statement is true.
#you can also check it like
print(2>1)
if 1 > 2:
print("1 is greater than 2")
else:
print("1 is not greater than 2")
num = 1
while num <= 10:
print(num)
num += 1
number = [1,2,3,4,5,6,7,8,9,10]
for num in number:
print(num)
numbers = [5, 7, 1, 3, 4]
print(numbers[0]) # 5
print(numbers[1]) # 7
print(numbers[4]) # 4
persons = []
persons.append("Person A")
persons.append("Person B")
print(persons[0]) # Person A
print(persons[1]) # Person B