Installing packages in python
Refer : [Link]
Copy python path by clicking python and open file location
Copy the location in target: C:\Users\annap\AppData\Local\Programs\Python\Python312\
[Link]
Open command prompt as a administrator
Print() - Printing in python
Print(“Hello”)
Print Modifiers
print("A 'single quote' inside a double quote")
eg: print(“She said: ‘Hello‘ and then left.”)
print('A double quote" inside a single quote')
eg: print('She said: “Hello“and then left.')
print("Alternatively you can just \"escape\" the quote")
print("She said: \"Hello\" and then left.")
\n – for new line
print("Hello world\nHello world")
syntax error: suppose if we are missing any “ or ‘ quotaions
indentation error: will occur when spacing is given wrongly
input() – get input from user
Commenting a line of code use # (ctrl+/)
OOP - in real world application, we are trying to model real world applications into models.
modules and each has its own attributes(variables) and methods(functions)
Restaurant have models called chef, waiter, manager etc. waiter module have attributes called
is_holding_plate, responsible_table_num and methods called def take_order() and def
payment_collection() etc.
Blueprints (classes )are used to create objects.
Create an object syntax
Car=CarBluePrint()
Pypi=python package index is a repository of software for python programming