Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Game Preview
Structuri, liste, dictionare
Game Code: 1329315
Romanian
10
Public
Cum se folosesc structurile conditionale pentru liste si dictionare in Python
Play
Study
Slideshow
Share
mihaitza2000
25
Share Structuri, liste, dictionare
Class PIN
Use Class PIN to share Baamboozle+ games with your students.
Upgrade
Google Classroom
Facebook
Twitter
Save to Folder
ce folosim pentru a testa o conditie ?
structura if(conditie)
15
ce este else ?
pentru o conditie a unei structuri if(condite), else funtioneaza ca if(not conditie)
15
cand folosim elif ?
daca avem mai mult de 2 conditii putem sa le scriem ca if(conditie) elif(alta conditie) else
15
daca avem o lista: lista_aplicatii = ['YouTube', 'GMail', 'Classroom'], cum selectam aplicatia 'GMail' ?
lista_aplicatii[1], 'GMail' este al doilea element din list(obs. 1 dintre [] inseamna cate elemente sunt inainte de elementul selectat)
15
ce functie folosim pentru a calcula cate elemente are lista lista_orase = ['Cluj', 'Iasi', 'Bucuresti','Timisoare']
len(lista_orase), len vine de la length(lungime)
15
avem o lista lista_meserii = ['Programator', 'Pompier', 'Pilot', 'Comediant'], cum adaugam meseria meserie = "Dentist' ?
folosim functia append: lista_meserii.append(meserie)
15
in lista_limbi_strine = ['engleza', 'franceza', 'spaniola', 'romana'] cum scoatem limba 'romana' care nu e straina ?
cu functia remove, lista_limbi_strine.remove('romana')
15
avem dictionarul: followeri = {'alex_12':12000, 'teo_22':1300, 'vladdutz':1200}, cum calculam numarul maxim de followeri ?
max(followeri.values()), functia max pentru lista de valori obtinuta cu functia values() a dictionarului
15
cum obtinem numele contactelelor din dictionarul: contacte = {'Alex':'0244', 'Dan':'43534', 'Stefan':'543'}
cu functia keys(), lista_nume = contacte.keys()
15
cum calculam cate carti au impreuna persoanele din dictionar lista_carti = {'Maria': 3, 'Stefan': 12, 'Teo': 2}
cu functia sum si functia values, sum(lista_carti.values())
15
Play for Free
Baamboozle+
NEW!
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
More
How to Play
Make some teams
Take turns choosing questions
Say the answer then hit the
Check
button
Click
Okay
if the team is correct or
Oops
if not
Teams
Sign in to choose
1
2
3
4
5
6
7
8
Quiz
Sign in to choose
Classic
Questions and Power-Ups
Classic Jr
Sign in to choose
×
Sign up for a trial to unlock features.
Get Started
Your experience on this site will be improved by allowing cookies.
Allow cookies