解答例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
x = "one","two","three","fou" print(x[1:3]) y= {"月曜日":"Monday", "火曜日":"Tuesday", "水曜日":"Wednesday", "木曜日":"Thursday", "金曜日":"Friday", "土曜日":"Saturday", "日曜日":"Sunday" } youbi = input("曜日を入力:") print(y[youbi]) z1 = {4,6,1} z2 = {7,4,6} z3 = {9,0,2} z4 = (z1 - z2) & (z1 -z3) print(z4) |
【実行結果】