fork download
  1. # your code goes here
  2. print ('1つ目の数字を入力してください')
  3.  
  4. str1 = input ()
  5.  
  6. print ('2つ目の数字を入力してください')
  7.  
  8. str2 = input ()
  9.  
  10. num1 = int (str1)
  11.  
  12. num2 = int (str2)
  13.  
  14. if num1 == num2:
  15. print('入力された2つの整数は同じです。')
  16. else:
  17. printf('入力された2つの整数は異なります。')
  18.  
  19.  
  20.  
Runtime error #stdin #stdout #stderr 0.01s 27704KB
stdin
Standard input is empty
stdout
1つ目の数字を入力してください
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
EOFError: EOF when reading a line