初心者向けのPythonのプログラミング問題です。入門編としてチャレンジしてください。Pythonの正答例は以下になります。
問題346
import random
numbers = [1, 2, 3, 4, 5]
random.shuffle(numbers)
print(numbers)
問題347
person = “name”: “Taro”, “age”: 25, “height”: 175
max_key = max(person, key=person.get)
print(max_key)
問題348
string = “hello world python”
words = string.split()
print(words)



コメント