Thanks in advance.
a=int(input("Unesi a: "))
b=int(input("Unesi b: "))
d=input("Unesi c: ")
e=input("Unesi d: ")
Both code snippets ultimately do the same thing, provided that the input is valid for
e. If the input is not a number,
b will give you a
ValueError right away, since you're evaluating the string input to an
e will accept any sort of input, including those with non numerical data, but you'll get the same
ValueError when doing the addition. Same result, different timing when errors occur.