Dictionaries are a fundamental data structure in Python, allowing you to store and manipulate data in a flexible and efficient way. In this guide, we'll cover the basics of dictionaries, their methods, and how to use them effectively in your Python programs.
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
| { | |
| "domain": "ranchi.nic.in", | |
| "total_paths_discovered": 224, | |
| "site_overview": "N/A", | |
| "subsite_analysis": [], | |
| "categories": [ | |
| { | |
| "category": "Priority Documents (Fallback)", | |
| "paths": [ | |
| "/notice/tender-invitation-5/", |
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
| print("hello world") | |
| #output: hello world | |
| print("===========================") | |
| print("hello world",end="#") | |
| print("hello people") | |
| print("how are you") | |
| #output: | |
| # hello world#hello people | |
| # how are you |
I'm literally the Most Annoying Person on The Internet
- 🌍 I'm based in Bokaro, Jharkhand, India
- 🖥️ See my portfolio at sarthaksidhant.me
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
| # Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/ | |
| # No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes. | |
| #in this program, we will have a basic idea of how to code lists in python | |
| #we will start off by creating a list of numbers | |
| list1=[1,2,3,4,5,6,7,8,9,10] | |
| #this list contains numbers from 1 to 10, all of these are integers, and we will print them out | |
| print(list1) | |
| #we will now understand how to access elements in a list | |
| #positive indexing: we will print the first element of list1, the indexing (counting) starts from 0 |
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
| # Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/ | |
| # No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes. | |
| #Loops in python | |
| #For Loop | |
| #While Loop | |
| #For Loop | |
| #We Will Only Be Covering For Loop In This Tutorial | |
| #For Loop is used to iterate over a sequence (list, tuple, string) or other iterable objects. |
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
| # Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/ | |
| # No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes. | |
| #Loops in python | |
| #For Loop | |
| #While Loop | |
| #For Loop | |
| #We Will Only Be Covering For Loop In This Tutorial | |
| #For Loop is used to iterate over a sequence (list, tuple, string) or other iterable objects. |
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
| # Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/ | |
| # No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes. | |
| #Operators in Python | |
| #Operators are used to perform operations on variables and values. | |
| #There are 4 types of Python Operators, they are: Arithmetic Operators, Comparison Operators, Assignment Operators, Logical Operators | |
| #Arithmetic Operators | |
| #Arithmetic operators are used with numeric values to perform common mathematical operations: | |
| print("Arithmetic Operators") |
