Magicode logo
Magicode
1 min read

Hello {word}!

https://cdn.apollon.ai/media/notebox/d40d8691-bfbf-4dd9-aca3-398d571b3713.jpeg
python
newWord = input("何か入力")
words = ["World", "Magicode", "Python", "Flutter", "Nya~~", "NIXIE", newWord]

print("- 1 --------------------------------")
print("\n".join(["Hello " + word + "!" for word in words]))

print("- 2 --------------------------------")
for word in words:
  print(f"Hello {word}!")

- 1 -------------------------------- Hello World! Hello Magicode! Hello Python! Hello Flutter! Hello Nya~~! Hello NIXIE! Hello 世界! - 2 -------------------------------- Hello World! Hello Magicode! Hello Python! Hello Flutter! Hello Nya~~! Hello NIXIE! Hello 世界!

実行されないコード

print("Hello Magicode!")

Discussion

コメントにはログインが必要です。