LoginSignup
0
0

Python演習問題_0【 条件分岐練習問題① 】

Last updated at Posted at 2023-06-30

条件分岐

練習

【問題1】:文字列を入力として受け取り、その文字列が回文(「しんぶんし」・「トマト」のように上から読んでも、下から読んでも意味が同じもののこと)かどうかを判定するプログラムを書いてください。
【問題2】:0~100までの整数値をランダムに生成し、その数値が80以上であれば "優"、60以上80未満であれば "良"、それ以外であれば "可" と出力するプログラムを書いてください。
【例】:生成された数値が90の場合、"優"と出力します。
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