-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
19 changed files
with
350 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from datetime import datetime | ||
from random import randint | ||
|
||
# Змінні з емоджі для твого проєкту | ||
world = '🌍🌎🌏' | ||
python = 'Python 🐍' | ||
fire = '🔥' | ||
|
||
# Емоджі, які ти можеш скопіювати у свій код: | ||
# 🎊 🙌 🙌🏼 🙌🏽 🙌🏾 🙌🏿 # 😃 🕒 🎨 🎮 🔬 🎉 🕶️ 🎲 😊 | ||
# 👩🦽 👩🏼🦽 👩🏽🦽 👩🏾🦽 👩🏿🦽 🧘 🧘🏼 🧘🏽 🧘🏾 🧘🏿 🙋 🙋🏼 🙋🏽 🙋🏾 🙋🏿 | ||
# 🦄 🚀 💯 ⭐ 💛 ❤️ 📚 ⚽ 🏏 🏀 🥋 🏆 ✨ 🥺 🌈 🔥 ♻️ 🌳 | ||
|
||
# Корисні символи :',()*_/.# | ||
|
||
# Визначення функцій | ||
def roll_dice(): | ||
max = input('Кількість сторін кубика:') # Чекай, доки користувач введе дані | ||
print('Цей кубик називається D', max) # Використай число, введене користувачем | ||
roll = randint(1, int(max)) # Використай змінну max, щоб вказати кількість сторін кубика | ||
print('Тобі випало число', roll, fire * roll) # Повтори емоджі вогника стільки разів, скільки тобі випало на кубику | ||
|
||
# Нижче розмісти код, який потрібно виконати | ||
print('Привіт,', world) | ||
print('Ласкаво просимо до', python) | ||
print(python, 'знається на математиці!') | ||
print(230 * 5782 ** 2 / 23781) # Виведи результат розрахунків | ||
print('Дата й час —', datetime.now()) # Виведи поточну дату й час | ||
|
||
roll_dice() # Виклич функцію, яка кидає кубик | ||
print('Я ❤️ веселку 🌈') | ||
print('Єдинороги 🦄 викликають у мене 😃') | ||
print('Я хочу написати оповідання 📖 за допомогою', python) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: "Привіт, 🌍🌎🌏 (рішення)" | ||
identifier: "hello-world-solution" | ||
type: 'python' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from datetime import datetime | ||
from random import randint | ||
|
||
# Змінні з емоджі для твого проєкту | ||
world = '🌍🌎🌏' | ||
python = 'Python 🐍' | ||
fire = '🔥' | ||
|
||
# Емоджі, які ти можеш скопіювати у свій код: | ||
# 🎊 🙌 🙌🏼 🙌🏽 🙌🏾 🙌🏿 # 😃 🕒 🎨 🎮 🔬 🎉 🕶️ 🎲 😊 | ||
# 👩🦽 👩🏼🦽 👩🏽🦽 👩🏾🦽 👩🏿🦽🧘 🧘🏼 🧘🏽 🧘🏾 🧘🏿 🙋 🙋🏼 🙋🏽 🙋🏾 🙋🏿 | ||
# 🦄 🚀 💯 ⭐ 💛 ❤️ 📚 ⚽ 🏏 🏀 🥋 🏆 ✨ 🥺 🌈 🔥 ♻️ 🌳 | ||
|
||
# Корисні символи :',()*_/.# | ||
|
||
# Визначення функцій | ||
|
||
# Нижче розмісти код, який потрібно виконати |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: "Привіт, 🌍🌎🌏" | ||
identifier: "hello-world-starter" | ||
type: 'python' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,29 @@ | ||
Розмісти код для виконання тут | ||
Нижче розмісти код, який потрібно виконати | ||
|
||
Вивести результати обчислення сум | ||
Привіт | ||
|
||
Виведення емодзі | ||
Ласкаво просимо до {python} | ||
|
||
Помісти сюди визначення функцій | ||
{python} знається на математиці! | ||
|
||
Не забуваймо про двокрапку в кінці цього рядка | ||
Дата й час — {datetime.now()} | ||
|
||
Виклик функції roll_dice | ||
Визначення функцій | ||
|
||
Генерація випадкового числа від 1 до 6 | ||
Тобі випало число {4} | ||
|
||
Отримати значення змінної roll | ||
Кількість сторін кубика: | ||
|
||
Повторення емодзі вогню, яке відповідає результату випадіння рандомного числа | ||
Цей кубик називається D {max} | ||
|
||
Очікування на введення даних від користувача | ||
Я вмію кодувати | ||
|
||
Використання числа, яке ввів користувач | ||
Перше число: | ||
|
||
randint повинен мати значення max, щоб бути 'цілим числом' | ||
Друге число: | ||
|
||
Очікування натискання користувачем клавіші Enter | ||
Я ❤️ ... | ||
|
||
Корисні символи :',()*_/.# | ||
... викликає у мене 😃 | ||
|
||
Змінні емодзі для подальшого використання у твоєму проєкті | ||
|
||
Додай альтернативи ASCII-артів | ||
|
||
Раніше ми використовували смайлики, зроблені з символів | ||
|
||
отримати вхідні дані від користувача | ||
|
||
згенерувати випадкове число | ||
|
||
повторити ємодзі вогню відповідно до числа кубика | ||
|
||
отримати поточну дату та час | ||
|
||
Виклик функції хобі | ||
Я хочу створювати ... у {python} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,15 @@ | ||
Привіт | ||
world | ||
|
||
Ласкаво просимо в ... | ||
add_one_and_one | ||
|
||
...дуже добре справляється з ... | ||
roll_dice | ||
|
||
...- | ||
roll | ||
|
||
...може зробити ... | ||
max | ||
|
||
Тобі випало число: ... | ||
fire | ||
|
||
Скільки сторін буде мати кубик? | ||
awesome | ||
|
||
Тип твого кубика: D ... | ||
|
||
Я <3 ... | ||
|
||
...робить мене ... | ||
|
||
Я хотів би зробити ... у ... | ||
|
||
чудово | ||
|
||
Я вмію ходити | ||
|
||
дві_кубики | ||
|
||
Перше число: | ||
|
||
Друге число: | ||
|
||
хобі | ||
|
||
хобі | ||
|
||
Що тобі подобається? | ||
|
||
Це звучить ... | ||
|
||
Ти можеш створити ... проєкт про ... | ||
|
||
кидок_кубики | ||
|
||
котити | ||
|
||
тепер | ||
|
||
світ | ||
|
||
суми | ||
|
||
календар | ||
|
||
годинник | ||
|
||
projects | ||
|
||
веселощі | ||
|
||
кубики | ||
|
||
єдиноріг | ||
|
||
space | ||
|
||
щасливий | ||
|
||
дурний | ||
|
||
серце | ||
|
||
ігри | ||
|
||
книги | ||
|
||
спорт | ||
|
||
green | ||
|
||
природи | ||
|
||
вогонь | ||
|
||
блискітки | ||
|
||
благати | ||
|
||
сто | ||
|
||
зірка | ||
|
||
жовте_серце | ||
|
||
веселка | ||
|
||
Обери найбільше число: | ||
|
||
I <3 веселки | ||
|
||
В яблучко - 500 балів! | ||
two_dice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.