Pythonの条件分岐と反復処理の実践

条件分岐の基本 条件分岐の実例: point = int(input('点数を入力(0~100の整数):')) if point < 60: print('不合格') elif point < 70: print('合格') point = int(input('点数を入力(0~100の整数):')) if point < 60: print(f'点数は{point}です') print('不合格') else: pass # 空操作としてのプレースホルダー 反復処理の実 ...

7月16日 21:41 投稿