admin (19)

Introduction to Python & VS Code

Key Features of Python Python is Easy to Learn and Use: There is no prerequisite to start Python, since it is Ideal programming language for beginners. Python don’t let you worry about low-level details, like memory management, hardware-level operations etc. Code is executed line-by-line directly…

Continue reading...

Comments

Comments in Python are the lines in the code that are ignored by the interpreter during the execution of the program. # sample example code print("Hello world") multi line commenting """ Multiple lines are commented like this "" print("Hello world") or ''' Multiple lines are…

Continue reading...

Variables in Python

Variables act as placeholders for data. They allow us to store and reuse values in our program. # Variable 'x' stores the integer value 5 x = 5 # Variable 'name' stores the string "Sam" name = "Sam" Rules for Naming Variables To use variables…

Continue reading...

Indentation in python

In Python, indentation is used to define blocks of code. It tells the Python interpreter that a group of statements belongs to a specific block. All statements with the same level of indentation are considered part of the same block. Indentation is achieved using whitespace…

Continue reading...

Print() in python

Python print() function prints the message to the screen or any other standard output device. In this article, we will cover about print() function in Python as well as it’s various operations. # print() function example print("hello world") a = [1, 2, 'gfg'] print(a) Syntax…

Continue reading...