Python3で関数を作成しました。
# 文字表示の練習
# Create 2023/7/16
#文字表示関数
def display(msg):
print(msg)
str1 = "test"
#文字の連結
str1 += "46"
display(str1)
str2 = "山下美月"
display(str2)
Go to list of users who liked
More than 1 year has passed since last update.
Python3で関数を作成しました。
# 文字表示の練習
# Create 2023/7/16
#文字表示関数
def display(msg):
print(msg)
str1 = "test"
#文字の連結
str1 += "46"
display(str1)
str2 = "山下美月"
display(str2)
Register as a new user and use Qiita more conveniently
Go to list of users who liked