Elemente rječnika zapisujemo u uglatim zagradama i odvajamo ih zarezom.
Rječnik (dictionary)

Quiz
•
Nastassia Sekulić
•
Education
•
12th Grade
•
7 plays
•
Medium
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
TOČNO
NETOČNO
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Koji od navedenih je ispravan način definiranja rječnika?
auto = { 'BMW', 'Audi' }
auto = { 'BMW' : 10, 'Audi' : 8 }
auto = [ 'BMW' : 10, 'Audi' : 8 ]
auto = [ 'BMW', 10, 'Audi', 8 ]
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Što će ispisati navedeni programski kod?
KeyError
0
None
null
4.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
Koja je metoda u rječniku ekvivalentna metodi append u listama i stringovima?
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Što će ispisati idući programski kod?
[ 'Audi', 'BMW', 'Honda', 'Toyota' ]
[8, 10, 12, 14]
['8', '10', '12', '14']
['Toyota', 'Honda', 'BMW', 'Audi']
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Što će ispisati idući programski kod?
[ ('Toyota', 8), ('Audi', 10), ('BMW', 12), ('Honda', 14) ]
[ ('Honda', 14), ('BMW', 12), ('Audi', 10), ('Toyota', 8) ]
[ 'Toyota', 'Audi', 'BMW', 'Honda' ]
[ ('Toyota', 'Audi'), ('BMW', 'Honda') ]
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Koji je lambda-izraz pogrešno zapisan?
z = lambda a, b: a + b
k = lambda x: x * x
s = lambda y: str(y)
t = lambda c: c ** d
8.
FILL IN THE BLANK QUESTION
10 sec • 1 pt
Svaki element rječnika sastoji se od ___ i pripadne vrijednosti.
Similar Resources on Quizizz
10 questions
Kenderaan Hibrid, Elektrik dan Hidrogen

Quiz
•
12th Grade
11 questions
7 Waste

Quiz
•
9th - 12th Grade
10 questions
Sasis Sepeda Motor 2

Quiz
•
11th - 12th Grade
10 questions
what is that logo?

Quiz
•
KG - Professional Dev...
10 questions
Logo Quiz

Quiz
•
2nd Grade - Professio...
12 questions
Quizeneur Round 1

Quiz
•
KG - Professional Dev...
10 questions
Cartoons, Netflix & Apps Quiz

Quiz
•
7th - 12th Grade
5 questions
บทที่ 1 หลักการของระบบอิเล็กทรอนิกส์รถยนต์

Quiz
•
12th Grade
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Education
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
Common Grammar Mistakes

Quiz
•
7th - 12th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
15 questions
Central Tendency

Quiz
•
9th - 12th Grade
20 questions
Banking

Quiz
•
9th - 12th Grade