Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

I am getting an EOF when reading a line error. How do I fix this? [closed]

$
0
0

I have written a Python code snippet to find the smallest number among three input integers. However, when attempting to submit it, I encountered an "EOF when reading a line" error. Here is the code:

int_a = input()int_b = input()int_c = input()if (int_a >= int_b or int_a <= int_c):     print(int_a)elif (int_b <= int_a or int_b <= int_c):     print(int_b)elif  (int_c <= int_a or int_c <= int_b):     print(int_c)

I attempted to resolve the issue by using int(input()) instead of input(), but I received another error. Could you please assist me in resolving these errors and achieving the functionality of finding the smallest number among the given integers?


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>