👇NOTE

Labs will be open every week for self practice for all jagruti students:
⚠️ Timings: 1:00 PM to 2:30 PM
  ( Tuesday, Wednesday, Friday & Saturday )
📍Location: Admin Block, Room: 31

Lab Assistant: ShashiKanth

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...

Taking Input in Python

input () function first takes the input from the user and converts it into a string. The type of the returned object always will be <class ‘str’>. It does not evaluate the expression it just returns the complete statement as String. # Python program showing…

Continue reading...

Practise Programs for Day 1

1.Program to take 2 strings and print them 2.Program to take 1 integer, 1 string , 1 float and print values & type of data 3.Program to take 2 strings and print with sep=”-“ and also print with end=”!!” 4.Program to take 2 integers and…

Continue reading...

Strings

A string is a sequence of characters. Python treats anything inside quotes as a string. This includes letters, numbers, and symbols. Python has no character data type so single character is a string of length 1. s1 = "Hello" s2 = 'wor'd' print(s1,s2) Multi line…

Continue reading...

Numbers

In Python, numbers are a core data-type essential for performing arithmetic operations and calculations. Python supports three types of numbers, including integers, floating-point numbers and complex numbers. Here’s an overview of each: x = 5 # A positive integer y = -23 # A negative…

Continue reading...

List

In Python, a list is a built-in dynamic sized array (automatically grows and shrinks). We can store all types of items (including another list) in a list. A list may contain mixed type of items, this is possible because a list mainly stores references at…

Continue reading...