DAY-5 Of GSoC

Vikas Chaudhary
2 min readJan 20, 2024

--

My Journey into Python

Today marks the beginning of my journey into Python. I’ve decided to dive into projects related to Python, a decision influenced by my mentor who is proficient in Python. He suggested that I choose a project related to Python, and I’m excited to embark on this new adventure.

Introduction to Python

Python is a high-level, interpreted programming language known for its simplicity and readability. It’s widely used in various fields, from web development to data science, making it a versatile language to learn.

Variables and Data Types in Python

In Python, variables are containers for storing data values. Python has various data types including:

  • String: Used for text, enclosed within either single or double quotes.
  • Numbers: Can be of type int (integer), float (floating point number), or complex.
  • Boolean: Represents one of two values: True or False.

Basic Operators and Input in Python

Python supports a variety of operators such as arithmetic operators (+, -, *, /, etc.), comparison operators (==, !=, <, >, etc.), and logical operators (and, or, not). Python also provides the input() function to get user input.

Conditional Statements in Python

Python supports conditional statements which are used to perform different computations or actions depending on whether a condition evaluates to true or false. The conditional statements in Python include:

  • If-Else: Used when we want to execute a block of code if a specified condition is true, and another block of code if it is false.
  • If-ElseIf-Else: Used when we want to choose between several blocks of code to execute.
  • Chain of If-Else: Used when we have multiple conditions to check.

Loops in Python

Loops in Python are used to execute a block of code repeatedly. Python provides two types of loops:

  • For Loop: Executes a block of code a certain number of times.
  • While Loop: Executes a block of code as long as a certain condition is true.

--

--

Vikas Chaudhary

“Tech student specializing in AI and Machine Learning. Preparing for GSoC. Passionate about entrepreneurship. Striving to blend technology and innovation.”