- Best Case = O(1)
- Average Case = O (n)
- Worst Case Complexity O(n)
Program
|
This Only for educational Purpose Mp Gk, Mppsc, computer basic, database, youtube classes , yunus sir tutorial, basic computer. digital college chhatarpur, math reasoning, English, corel draw, MS Office Word Excel power point
Program
|
Python Syllabus
UNIT - I
Planning the computer program: concept of problem solving, problem definition, program design, debugging, types of errors in programming, documentation. Techniques of problem solving: flowcharting, decision table, algorithms, structured programming concepts, programming methodologies viz. Top-down and bottom-up programming. Overview of programming: structure of a python program, elements of python.
UNIT - II
Introduction to python: python interpreter, using python as calculator, python shell, indentation. Atoms, identifiers and keywords, literals, strings, operators (arithmetic operator, relational operator, logical or Boolean operator, assignment, operator, ternary operator, bit wise operator, increment or decrement operator) Creating python programs: input and output statements, control statements(branching, looping, conditional statement, exit function, difference between break, continue and pass.), defining functions, default arguments, errors and exceptions. Iteration and recursion: conditional execution, alternative execution, nested conditionals, the return statement.
UNIT - III
Recursion, stack diagrams for recursive functions, multiple assignment, the while statement, tables, two-dimensional tables (English) Strings and lists: string as a compound data type, length, traversal and the for loop, string slices, string comparison, a find function.
UNIT - IV
Looping and counting, list values, accessing elements, list length, list membership, lists and for loops, list operations, list deletion. Cloning lists, nested lists Object oriented programming: introduction to classes, objects and methods, standard libraries.(English)
UNIT - V
Data structures: (LINK) ENGLISH arrays, list, set, stacks and queues. Searching and sorting: linear and binary search, bubble, selection and insertion sorting.
Loop : The execution of a specific code may need to repeated several number of times.
1. For Loop
2. While Loop
Program 1
If Conditional Statement
1. if
2. if .. Else
3. nested
Program:1 IF
Num = Int(input("Please enter any no"))
If num%2 = = 0 :
print ("Number is even ")
Program 2 if ... else
Num = Int(input("Please enter any no"))
If num%2 = = 0 :
print ("Number is even ")
Else :
Print (" no is odd")
Program 3
Num = Int(input("enter any No."))
if Num = = 10 :
Print ("num is Equal to 10 ")
elif Num = = 50:
Print ("No is equal to 10 ")
Else:
Print (" no. is not equal to 10 and 50 )
(Keywords are special reserved words)
True | False | None | and | as |
asset | def | class | continue | break |
else | finally | elif | del | except |
global | for | if | from | import |
raise | try | or | return | pass |
nonlocal | in | not | is | lambda |
Rules : -use only alphabets and _underscore in starting & it is case sensitive .
example: x = "John" ,x = 'John'
X = Str(3) #it will show x contain integer
Note important function - type(x) output : <class 'int'>
Cases :- Camel Case : myVariableName = "John"
Pascal Case : MyVariableName = "John"
Snake Case : my_variable_name = "John"
Python
Python Created by Guido Van Rossum in 1991. & its High Level language
1. Web Development
2. Software Development
3.Mechine learning
4. AI
6. Data Mining
Goto https://www.python.org/ or Click here
Software for Run Python :- Visual Studio Code Download , Pycharm Download