#ΤΥΠΩΣΕ ΤΟ ΟΝΟΜΑ ΚΑΙ ΤΗΝ ΗΛΙΚΙΑ name = "Alice" age = 25 print(____ + " is " + ____ + " years old.") #ΠΡΟΣΘΕΣΕ ΤΟ ΠΟΡΤΟΚΑΛΙ fruits = 【____ 】 fruits.____("orange") print(fruits) #ΤΥΠΩΣΕ ΤΟ ΠΡΩΤΟ ΚΑΙ ΤΟ ΤΡΙΤΟ ΧΡΩΜΑ colors = ("red", "blue", "green") print(colors【____】, colors【____】 #ΤΥΠΩΣΕ ΤΟ ΚΕΙΜΕΝΟ ΜΕ ΜΙΚΡΑ ΓΡΑΜΜΑΤΑ text = " Hello World " new_text = text.____() print(new_text) #ΠΑΡΤΕ ΤΟΥΣ ΗΧΟΥΣ ΤΗΣ ΓΑΤΑΣ (πρώτα), (και μετά) ΤΟΥ ΣΚΥΛΟΥ pets = {"cat": "meow", "dog": "bark", "cow": "moo"} sound1 = pets【____】 sound2 = pets【____】 print(sound1, sound2) #ΣΕ ΜΙΑ ΛΙΣΤΑ ΜΕ ΑΡΙΘΜΟΥΣ ΑΠΟ ΤΟ 1 ΕΩΣ ΤΟ 5, ΤΥΠΩΣΕ ΤΟ ΔΙΠΛΑΣΙΟ ΚΑΘΕ ΑΡΙΘΜΟΥ numbers = 【____】 for ____ in ____ : print( ____ * 2) #ΔΕΣ ΑΝ Ο ΑΡΙΘΜΟΣ number ΕΙΝΑΙ ΘΕΤΙΚΟΣ Ή ΑΡΝΗΤΙΚΟΣ. ΑΝ ΕΙΝΑΙ ΘΕΤΙΚΟΣ ΤΥΠΩΣΕ Positive, ΑΛΛΙΩΣ ΤΥΠΩΣΕ Negative number = -3 if [____] > 0: print("Positive") else: print(____) #ΤΥΠΩΣΕ ΤΟΥΣ ΑΡΙΘΜΟΥΣ 1 ΕΩΣ 5 count = 1 while ____: print(____) count += 1 #ΤΥΠΩΣΕ ΤΑ ΚΛΕΙΔΙΑ ΚΑΙ ΤΙΣ ΤΙΜΕΣ grades = {"Alice": 85, "Bob": 90, "Charlie": 78} for ____, value in grades.____(): print(key, ____) #ΤΥΠΩΣΕ ΜΙΑ ΛΙΣΤΑ ΜΕ ΤΟΥΣ ΑΡΙΘΜΟΥΣ 1-5 ΣΤΗΝ ΔΕΥΤΕΡΑ numbers = 【1, 2, 3, 4】 squares = 【】 for num in ____: squares.append(____) print(squares) #ΤΥΠΩΣΕ ΤΑ ΔΥΟ ΤΕΛΕΥΤΑΙΑ ΣΤΟΙΧΕΙΑ colors = ("red", "blue", "green", "yellow") print(colors【____】, colors【____】) #ΕΝΗΜΕΡΩΣΕ ΤΟ ΛΕΞΙΚΟ, ΠΡΟΣΘΕΤΟΝΤΑΣ ΤΗΝ ΠΟΛΗ ΝΕΑ ΥΟΡΚΗ info = {"name": "John", "age": 25} info【"city"】 = ____ print(info) #ΤΥΠΩΣΕ ΤΟ ΑΘΡΟΙΣΜΑ ΤΗΣ ΛΙΣΤΑΣ numbers = 【10, 20, 30, 40】 total = 0 for num in ____: total += ____ print(total) #ΤΥΠΩΣΕ ΤΟΥΣ ΑΡΙΘΜΟΥΣ ΜΕ ΤΗΝ ΣΕΙΡΑ ΜΠΡΟΣΤΑ ΑΠΟ ΚΑΘΕ ΧΑΡΑΚΤΗΡΑ list1 = 【1, 2】 list2 = 【"a", "b"】 for ____ in ____: for ____ in ____: print(num, char) numbers = 【10, 15, 20, 25, 30, 35, 40】 threshold = ____ evens = 【】 for num in ____: if num % ____ == 0: evens.____(num) count = 0 for ____ in evens: if even > ____: count += ____ total_sum = 0 for even in evens: total_sum += even if len(____) > 0: average = total_sum / len(evens) else: average = 0 print("Even numbers:", evens, "Count above threshold:", count) print("Sum of evens:", total_sum) print("Average of evens:", ____ )
0%
Complete the Code Block
Partajează
Partajează
Partajează
de
Neofytou
Editează conținutul
Imprimare
Încorporează
Mai multe
Misiuni
Clasament
Arată mai mult
Arată mai puțin
Acest clasament este în prezent privat. Fă clic pe
Distribuie
pentru a-l face public.
Acest clasament a fost dezactivat de proprietarul resursei.
Acest clasament este dezactivat, deoarece opțiunile tale sunt diferite de ale proprietarului resursei.
Opțiuni de revenire
Completați propoziția
este un șablon deschis. Nu generează scoruri pentru un clasament.
Este necesară conectarea
Stilul vizual
Fonturi
Este necesar un abonament
Opţiuni
Comutare șablon
Arată tot
Mai multe formate vor apărea pe măsură ce folosești activitatea.
Rezultate deschise
Copiați linkul
Cod QR
Şterge
Restaurare activitate salvată automat:
?