a = "Taro"
b = "Hanako"
c = "Ichiro"
print("Hello," + a + ".How are you?")
print("Hello," + b + ".How are you?")
print("Hello," + c + ".How are you?")
def showMsg(str):
print("Hello," + str + ".How are you?")
showMsg("Taro")
showMsg("Hanako")
showMsg("Ichiro")
※リストが表示されない場合
AddBlockなどの広告ブロックツールがONになっているとリストなどが表示されない場合があります。これらのツールをOFFにしてみてください。
※サンプル(1)
a = "Taro"
b = "Hanako"
c = "Ichiro"
print("Hello," + a + ".How are you?")
print("Hello," + b + ".How are you?")
print("Hello," + c + ".How are you?")
※サンプル(2)
def showMsg(str):
print("Hello," + str + ".How are you?")
showMsg("Taro")
showMsg("Hanako")
showMsg("Ichiro")
| 次へ >> |