#ΤΥΠΩΣΕ ΤΟ ΟΝΟΜΑ ΚΑΙ ΤΗΝ ΗΛΙΚΙΑ 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
共用
共用
共用
由
Neofytou
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
完成句子
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?