#ΤΥΠΩΣΕ ΤΟ ΟΝΟΜΑ ΚΑΙ ΤΗΝ ΗΛΙΚΙΑ 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
Udostępnij
Udostępnij
Udostępnij
autor:
Neofytou
Edytuj elementy
Drukuj
Osadź
Więcej
Zadania
Tabela rankingowa
Pokaż więcej
Pokaż mniej
Ta tabela rankingowa jest obecnie prywatna. Kliknij przycisk
Udostępnij
, aby ją upublicznić.
Ta tabela rankingowa została wyłączona przez właściciela materiału.
Ta tabela rankingowa została wyłączona, ponieważ Twoje opcje różnią się od opcji właściciela materiału.
Przywróć poprzednie opcje
Uzupełnij zdanie
jest szablonem otwartym. Nie generuje wyników w tabeli rankingowej.
Wymagane logowanie
Motyw
Czcionki
Wymagany abonament
Opcje
Zmień szablon
Pokaż wszystko
Więcej formatów pojawi się podczas wykonywania ćwiczenia.
Otwórz wyniki
Kopiuj link
Kod QR
Usuń
Przywrócić automatycznie zapisane ćwiczenie:
?