#ΤΥΠΩΣΕ ΤΟ ΟΝΟΜΑ ΚΑΙ ΤΗΝ ΗΛΙΚΙΑ 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
Jaa
Jaa
Jaa
tekijä
Neofytou
Muokkaa sisältöä
Tulosta
Upota
Lisää
Tehtäviä
Tulostaulu
Näytä enemmän
Näytä vähemmän
Tämä tulostaulu on tällä hetkellä yksityinen. Jos haluat tehdä siitä julkisen, valitse
Jaa
.
Tehtävän omistaja on poistanut tämän tulostaulun käytöstä.
Tämä tulostaulu on poistettu käytöstä, koska vaihtoehdot eroavat tehtävän omistajan vaihtoehtoista.
Palauta Optiot
Täydennä lause
on avoin malli. Se ei luo tulostaululle pisteitä.
SIsäänkirjautuminen vaaditaan
Visuaalinen tyyli
Fontit
Tilaus vaaditaan
Vaihtoehdot
Vaihda mallia
Näytä kaikki
Saat lisää muotoiluasetuksia pelin aikana.
Avoimet tulokset
Kopioi linkki
QR-koodi
Poista
Säilytetäänkö automaattisesti tallennettu tehtävä
?