Python Programming Examples
Python Programming Examples
Join our virtual event for teachers and school admins on June 17, 2020. Register today!
Play Share
A public kahoot
SHOW MORE
1 - Quiz
a=b=c=10,20,30
30 sec
a=10,b=20,c=30
Compilation Error
a=10,b=10,c=10
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 1/8
5/21/2020 Kahoot!
Join our virtual event for teachers and school admins on June 17, 2020. Register today!
2 - Quiz
str="hello welcome you all" ,str1. nd("hello") =?
Play Share
30 sec
hello
-1
3 - Quiz
str="hello welcome you all" , str.split(' ', 2 ) =?
30 sec
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 2/8
5/21/2020 Kahoot!
4 - Quiz Join our virtual event for teachers and school admins on June 17, 2020. Register today!
list1 = ['physics', 'chemistry', 1997, 2000,34.565]; list1[:-2]=?
Play Share
30 sec
['physics', 'chemistry']
['2000]
5 - Quiz
list4=[12,15.934,'hello',[15,16,18,[34,'dfdf',56],'hello']]; list4[3][3][1][:-2] = ?
60 sec
'dfdf'
'df'
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 3/8
5/21/2020 Kahoot!
6 - True or False
Join our virtual event for teachers and school admins on June 17, 2020. Register today!
List is Immutable??
True
False
7 - Quiz
list4 = [12, 15.934, 'hello', [15, 16, 18, [34, 'dfdf', 56], 'hell o']] list4[2]='dello'
60 sec
[12, 15.934, 'dello', [15, 16, 18, [34, 'dfdf', 56], 'hell o']]
[12, 15.934, 'dello', [15, 16, 18, [34, 'dfdf', 56], 'hell o']]
['hell o']
8 - Quiz
list4 = [12, 15.934, 'dello', [15, 16, 18, [34, 56], 'hello'], 'hai'] list4.insert(0,"Welcome") =??
60 sec
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 4/8
5/21/2020 Kahoot!
['Welcome'] Join our virtual event for teachers and school admins on June 17, 2020. Register today!
[12, 15.934, 'dello', [15, 16, 18, [34, 56], 'hell o'], 'hai'],['welcome']
Play Share
['Welcome', 12, 15.934, 'dello', [15, 16, 18, [34, 56], 'hell o'], 'hai']
Error
9 - Quiz
Keyword used to delete the dictionary
60 sec
del
delete
clear
10 - Quiz
str="welcome"; def printme( str ): print(str) return
30 sec
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 5/8
5/21/2020 Kahoot!
Welcome Join our virtual event for teachers and school admins on June 17, 2020. Register today!
"Welcome"
Play Share
Function Error
11 - Quiz
a=10 b=20 a>b ?
30 sec
True
False
Error
12 - Quiz
a=0; while(a>5): print("hello") a=a-1
60 sec
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 6/8
5/21/2020 Kahoot!
hello
Play Share
Intendation Error
13 - Quiz
for i in range(10): print(i)
30 sec
it will print 0 to 10
it will print 10
it will print 0 to 9
Error
14 - Quiz
a=5; for i in range(0,10,a-2): print(i)
60 sec
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 7/8
5/21/2020 Kahoot!
0,3,6,9 Join our virtual event for teachers and school admins on June 17, 2020. Register today!
o to 9
Play Share
0,2,4,6,8
15 - Quiz
a=5; for i in range(0,10,a-2+1-2): print(i)
60 sec
0,3,6,9
0,2,4,6,8
0,4,8
0,5,10
https://create.kahoot.it/details/2e8beb1f-0f53-457e-8aca-995dc8ed2f80 8/8