0
0

この記事の目的は、生まれた都市とペットの名前を入れることによって、バンドの名前を作成するやり方をPythonで書き上げた。

  1. print("Welcome to the band name generator")
  2. city = input("which city did you grow up in?\n")
  3. pet = input ("what is your name of your pet?\n")
  4. print ("Your band name would be " + city + " " + pet)

例えば、which city did you grow up in?にnishinomiya
what is the name of your pet?にfredrick
と入力すると、Your bandname would be nishinomiya fredrickと出力される。
それが、この添付の画像に出力されている。
Screenshot 2024-06-09 at 17.07.54.png

皆さんもぜひ試してみてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0