0% found this document useful (0 votes)
7 views2 pages

Python Programming Basics and CSS Overview

Python is an interpreted, high-level, general-purpose programming language that is easy to learn and widely used for a variety of applications including software, robotics, and artificial intelligence. It can be run on multiple platforms and includes an interactive development environment called IDLE that allows users to write and run Python code, check for errors, and see output. Key aspects of Python include variables, data types, operators, functions, and keywords to write programs and process data according to a user's input.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Python Programming Basics and CSS Overview

Python is an interpreted, high-level, general-purpose programming language that is easy to learn and widely used for a variety of applications including software, robotics, and artificial intelligence. It can be run on multiple platforms and includes an interactive development environment called IDLE that allows users to write and run Python code, check for errors, and see output. Key aspects of Python include variables, data types, operators, functions, and keywords to write programs and process data according to a user's input.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

15/2

A computer is a machine that processes data according to the input given by the user to
produce meaningful output
Set of logical instructions given to a computer is called Program
A person who writes programs is called a programmer

Guido Van Russom invented Python in 1991

An interpreted language is a language that reads code in its raw form and executes it
without being compiled

Popular, easy to learn, wide applications robot, software, artificial intelligence

Cross platform – other apps can be modified using Python

Compiler – High level code to low level code

Interactive Mode – Each line is processed upon pressing ENTER


Script Mode – Batch processor, entire programme is written saved and then run
Close button on top right to close or Ctrl+Z

IDLE – Integrated Development & Learning Environment


IDLE – can run on Linux, Windows MacOS, it marks inputs outputs and errors in color, multi
window text editor with undo, smart indent, auto completion etc.

IDLE Python interactive mode acts as a calculator

IDLE open new file to stat Script Mode

Title bar has minimize maximize restore close

Script Area – where you type the code

Status bar – line and column of cursor

Python keywords are reserved words those cannot be used as variable names, function
names or other identifiers – and as else except import

Locations where values are stored in computer memory are called variables

Variable name to start with alphabet (capital or small) or underscore


It can comprise of alphabets and underscore – no special character no space
Valid variable example emp_code
Basic Date types in Python – Numerical (2564, 123.55) Boolean (1,0) String (‘myname’ “215”
‘myage’)
Assignment Operator is =, a=20 means variable a is assigned value 20; x=20 y=30, x+y=x now
50 is assigned to x

Python is case sensitive programming language

print ( ) function

17/02

Cascading Style Sheet – CSS

Selector
Property
Value

External Style – set of web pages


Internal Style – one web page
Inline Style – adding style to particular element
[Link]

Shop No 6A-b, Agarwal Complex, Near Muncipal Market, Chimanlal Girdharlal Rd,
Ahmedabad, Gujarat 380009

9974190180

You might also like