初心者向けのPythonのプログラミング問題です。入門編としてチャレンジしてください。Pythonの正答例は以下になります。
問題292
text = “hello”
uppercase_text = text.upper()
print(uppercase_text)
問題293
text = “hello world”
vowels = “aeiou”
vowel_count = sum(1 for char in text if char in vowels)
print(f”母音の数は vowel_count です”)
問題294
num = 5
n = 3
repeated_list = [num] * n
print(repeated_list)



コメント