0 / 5
All exercises solved — nicely done! 🎉 Try building the real thing in the Playground.
Wszystkie zadania rozwiązane — świetna robota! 🎉 Spróbuj zbudować coś własnego w Placu zabaw.
The first Run tests downloads Python once (~6 MB), then it's instant. Everything runs locally in your browser.
Pierwsze Sprawdź pobiera Pythona raz (~6 MB), potem jest natychmiastowo. Wszystko działa lokalnie w przeglądarce.
1
Greet a userPrzywitaj użytkownika
Write a function
greet(name) that returns "Hello, " + the name + "!". So greet("Kai") gives "Hello, Kai!".
Napisz funkcję greet(name), która zwraca "Hello, " + imię + "!". Czyli greet("Kai") daje "Hello, Kai!".
Solved!Rozwiązane!
2
Count the framesPolicz klatki
A GIF has
fps frames every second. Write frames(seconds, fps) that returns the total number of frames.
GIF ma fps klatek na sekundę. Napisz frames(seconds, fps), które zwraca całkowitą liczbę klatek.
Solved!Rozwiązane!
3
Is the GIF too big?Czy GIF jest za duży?
Discord rejects GIFs over 25 MB. Write
too_big(mb) that returns True only when mb is greater than 25.
Discord odrzuca GIF-y powyżej 25 MB. Napisz too_big(mb), które zwraca True tylko gdy mb jest większe niż 25.
Solved!Rozwiązane!
4
Make it shoutNiech krzyczy
Write
shout(text) that returns the text in UPPERCASE with a "!" at the end. shout("gif") → "GIF!". (Tip: text.upper().)
Napisz shout(text), które zwraca tekst WIELKIMI literami z "!" na końcu. shout("gif") → "GIF!". (Wskazówka: text.upper().)
Solved!Rozwiązane!
5
Count the formatsPolicz formaty
Write
count(items) that returns how many items are in the list. (Tip: the len() function.)
Napisz count(items), które zwraca, ile elementów jest na liście. (Wskazówka: funkcja len().)
Solved!Rozwiązane!
· Stuck?Utknąłeś?
Revisit Python basics, experiment freely in the Playground, or read the crash course.
Wróć do Podstaw Pythona, eksperymentuj swobodnie w Placu zabaw lub przeczytaj kurs błyskawiczny.