diff --git a/content/roadmaps/107-python/content/100-python-basics/100-basic-syntax.md b/content/roadmaps/107-python/content/100-python-basics/100-basic-syntax.md index 89cd6b207..8416d99d4 100644 --- a/content/roadmaps/107-python/content/100-python-basics/100-basic-syntax.md +++ b/content/roadmaps/107-python/content/100-python-basics/100-basic-syntax.md @@ -1 +1,11 @@ -# Basic syntax \ No newline at end of file +# Basic Syntax + +Setup the environment for python and get started with the basics. + +Free Content +W3Schools - Python +Python for Beginners - Learn Python in 1 Hour +Python Basics +Learn X in Y Minutes / Python + + diff --git a/content/roadmaps/107-python/content/100-python-basics/101-variables-and-datatypes.md b/content/roadmaps/107-python/content/100-python-basics/101-variables-and-datatypes.md index 4acfc40a9..8d54717b2 100644 --- a/content/roadmaps/107-python/content/100-python-basics/101-variables-and-datatypes.md +++ b/content/roadmaps/107-python/content/100-python-basics/101-variables-and-datatypes.md @@ -1 +1,22 @@ -# Variables and datatypes \ No newline at end of file +## Variables + +Variables are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and ourselves. It is helpful to think of variables as containers that hold information. Their sole purpose is to label and store data in memory. This data can then be used throughout your program. + +Free Content +Variables in Python +W3Schools — Python Variables +Python Variables - Geeks for Geeks + +## Data Types + +Variables in Python can be of different data types. These data types can be text (`str`), numeric (`int`, `float`, `complex`), sequence (`list`, `tuple`, `range`), mapping (`dict`), set (`set`, `frozenset`), boolean (`boolean`), binary (`bytes`, `bytearray`, `memoryview`), or none (`None`). + +Free Content +Python Data Types +Basic Data Types in Python + + + + + + diff --git a/content/roadmaps/107-python/content/100-python-basics/102-conditionals.md b/content/roadmaps/107-python/content/100-python-basics/102-conditionals.md index e36a33870..1502ef975 100644 --- a/content/roadmaps/107-python/content/100-python-basics/102-conditionals.md +++ b/content/roadmaps/107-python/content/100-python-basics/102-conditionals.md @@ -1 +1,9 @@ -# Conditionals \ No newline at end of file +# Conditionals + +Conditional Statement in Python perform different computations or actions depending on whether a specific Boolean constraint evaluates to true or false. Conditional statements are handled by IF statements in Python. + +Free Content +Python Conditional Statements: IF…Else, ELIF & Switch Case +Conditional Statements in Python + + diff --git a/content/roadmaps/107-python/content/100-python-basics/103-typecasting-exceptions.md b/content/roadmaps/107-python/content/100-python-basics/103-typecasting-exceptions.md index a9c014e22..917073615 100644 --- a/content/roadmaps/107-python/content/100-python-basics/103-typecasting-exceptions.md +++ b/content/roadmaps/107-python/content/100-python-basics/103-typecasting-exceptions.md @@ -1 +1,19 @@ -# Typecasting exceptions \ No newline at end of file +## Typecasting + +The process of converting the value of one data type (integer, string, float, etc.) to another data type is called type conversion. Python has two types of type conversion: Implicit and Explicit. + +Free Content +Type Conversion and Casting +Type Casting in Python with Examples + +## Exceptions + +Python has many built-in exceptions that are raised when your program encounters an error (something in the program goes wrong). When these exceptions occur, the Python interpreter stops the current process and passes it to the calling process until it is handled. If not handled, the program will crash. + +Free Content +Python Exceptions: An Introduction +Errors and Exceptions +Python Exception Handling +Python Try Except + + diff --git a/content/roadmaps/107-python/content/100-python-basics/104-functions.md b/content/roadmaps/107-python/content/100-python-basics/104-functions.md index cebcc2697..6b4db0cf9 100644 --- a/content/roadmaps/107-python/content/100-python-basics/104-functions.md +++ b/content/roadmaps/107-python/content/100-python-basics/104-functions.md @@ -1 +1,11 @@ -# Functions \ No newline at end of file +# Functions + +In programming, a function is a reusable block of code that executes a certain functionality when it is called. Functions are integral parts of every programming language because they help make your code more modular and reusable. + +In Python, you define a function with the `def` keyword, then write the function identifier (name) followed by parentheses and a colon. + +Free Content +Python Functions – How to Define and Call a Function +Python Functions - W3Schools +Python Functions +Built-in Functions in Python diff --git a/content/roadmaps/107-python/content/100-python-basics/105-lists-tuples-sets-dictionaries.md b/content/roadmaps/107-python/content/100-python-basics/105-lists-tuples-sets-dictionaries.md index 277337870..79a3df924 100644 --- a/content/roadmaps/107-python/content/100-python-basics/105-lists-tuples-sets-dictionaries.md +++ b/content/roadmaps/107-python/content/100-python-basics/105-lists-tuples-sets-dictionaries.md @@ -1 +1,18 @@ -# Lists tuples sets dictionaries \ No newline at end of file +# Lists, Tuples, Sets, and Dictionaries + +**Lists:** are just like dynamic sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which makes it the most powerful tool in Python. + +**Tuple:** A Tuple is a collection of Python objects separated by commas. In some ways, a tuple is similar to a list in terms of indexing, nested objects, and repetition but a tuple is immutable, unlike lists that are mutable. + +**Set:** A Set is an unordered collection data type that is iterable, mutable, and has no duplicate elements. Python’s set class represents the mathematical notion of a set. + +**Dictionary:** in Python is an ordered (since Py 3.7) [unordered (Py 3.6 & prior)] collection of data values, used to store data values like a map, which, unlike other Data Types that hold only a single value as an element, Dictionary holds key:value pair. Key-value is provided in the dictionary to make it more optimized. + +Free Content +Difference Between List, Tuple, Set and Dictionary in Python +Differences and Applications of List, Tuple, Set and Dictionary in Python +Tuples vs. Lists vs. Sets in Python + + + + diff --git a/content/roadmaps/107-python/content/100-python-basics/readme.md b/content/roadmaps/107-python/content/100-python-basics/readme.md index e3a74ec56..0a2f8d7af 100644 --- a/content/roadmaps/107-python/content/100-python-basics/readme.md +++ b/content/roadmaps/107-python/content/100-python-basics/readme.md @@ -1 +1,9 @@ -# Python basics \ No newline at end of file +# Python + +Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically-typed and garbage-collected. + +Free Content +Official Website: Python +Python Wikipedia + +