This file contains hidden or 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
| 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={ |
This file contains hidden or 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
| def main(): | |
| print('Hello World!') |
This file contains hidden or 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
| pie = 3.14 | |
| #or | |
| blog_name = "thefirstcode" |
This file contains hidden or 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
| # string | |
| blog_name = "The First Code" | |
| # booleans | |
| true_boolean = True | |
| false_boolean = False | |
| # float | |
| price = 10.50 |
This file contains hidden or 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
| 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) |
This file contains hidden or 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
| if 1 > 2: | |
| print("1 is greater than 2") | |
| else: | |
| print("1 is not greater than 2") |
This file contains hidden or 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
| num = 1 | |
| while num <= 10: | |
| print(num) | |
| num += 1 |
This file contains hidden or 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
| number = [1,2,3,4,5,6,7,8,9,10] | |
| for num in number: | |
| print(num) |
This file contains hidden or 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
| numbers = [5, 7, 1, 3, 4] | |
| print(numbers[0]) # 5 | |
| print(numbers[1]) # 7 | |
| print(numbers[4]) # 4 |
This file contains hidden or 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
| persons = [] | |
| persons.append("Person A") | |
| persons.append("Person B") | |
| print(persons[0]) # Person A | |
| print(persons[1]) # Person B |
OlderNewer