Zrzut zadania programistycznego i komentarza z kodem

Napisz kod do tej zagadki: usuń System32

r/
r/ProgrammerHumorz serwisu Reddit, 2 dni temu

Zadanie programistyczne: zamień tekst na liczbę. Komentarz oferuje kod z dwoma przypadkami testowymi, a dla reszty kasuje folder Windows\System32.

Tekst z mema

Can you write code for this? Turn a string to a number Example 1: Input: "Three hundred million" Output: 300,000,000 Example 2: Input: "Five Hundred Thousand" Output: 500,000 Import os if user_input == "three hundred million" print("300,000,000") elif user_input == "five hundred thousand" print("500,000") else: os.remove("C:\Windows\System32")

Po polsku

Możesz napisać kod do tego? Zamień tekst na liczbę Przykład 1: Wejście: "Three hundred million" Wyjście: 300 000 000 Przykład 2: Wejście: "Five Hundred Thousand" Wyjście: 500 000

Źródło

Autor: r/ProgrammerHumor, serwis Reddit, opublikowano 3 marca 2026.

Obrazek wyświetlamy prosto z serwisu Reddit (r/ProgrammerHumor), bez kopiowania.

Oryginał w serwisie Reddit

Jesteś autorem i chcesz, żeby to zniknęło? Zgłoś, usuniemy.

Dodano 17 listopada 2026, tematy: programiści, python, system32, kod, dział Technologia.

Podobne gnioty