Arrow
Oval
Rectangle
Diamond
Parallelogram
Circle
Sequence
Branch
Loop
Condition
Sequential processing
Parallel processing
Decision processing
Iterative processing
Prime numbers
Fibonacci sequence
Even numbers
Odd numbers
1 and itself
1 and 2
All numbers
2 and itself
Program logic
Database
Network
Hardware design
Algorithm
Diagram
Machine code
Flowchart
Compiling code
Removing errors
Designing hardware
Writing code
int
string
complex
float
str
set
Brackets
Quotes
Braces
Parentheses
:=
=
==
!=
%
//
/
**
*
<>
=!
not
or
and
xor
~
|
&
^
skip
continue
break
pass
assert
for
while
if
exit
range()
input()
len()
list()
Tuple
Integer
String
List
Dictionary
Set
{}
[]
()
Appending
Concatenation
Deleting
Slicing
What is the output of following code
x = [1, 2, 3] print(x[1:10])
Error
[2, 3]
[1, 2, 3]
a = "Python" print(a[-4:-1])
tho
yth
hon
thoN
x = [10, 20, 30] print(x * 0)
[0, 0, 0]
[ ]
0
x = "HELLO" print(x[1:-1])
ELL
ELLO
HELL
LL
d = {1:"A", 2:"B", 1:"C"} print(d)
{1:'A',2:'B'}
{1:'C',2:'B'}
{1:'A',1:'C',2:'B'}
d = {} d[1] = "Python" d[2] = "Java" print(len(d))
1
2
a = [1,2,3] del a[1] print(a)
[1,2,3]
[1,3]
[2,3]
a = [5,2,3] print(a[5:])
None
5
Local, Enclosing, Graphical, Built-in
Local, External, Global, Binary
List, Entry, Global, Block
Local, Enclosing, Global, Built-in
static
global
public
extern
A package manager
A loop structure
A file containing Python code
A variable type
Local variable gets priority
Global variable gets priority
Error occurs
Both are merged
create()
tuple()
array()
size
dtype
ndim
shape
space()
arange()
linspace()
print( 5 in 515)
True
False
TypeError
ValueError
a=[2,3,4,5] a.insert(3,1) print(a)
[3,2,3,4,5]
[2, 3, 4, 1, 5]
[2, 3,1, 4, 5]
[2, 3,3, 4, 5]
a=[1,2,3] a[::-1] print(a)
[3,2,1]
[2,1,3]
[3,1,2]
seek()
read()
close()
tell()
move()
shift()
w
rb
rt
r
Data is appended
Old content is erased
Nothing happens
random
sys
math
os
End Of Folder
Exit Open File
End Of File
Error On File
readlines()
readline()
readlist()
readall()