i gave custom inputs to my code but after compiling, it said there was a syntax error in my input.
i used
a,b,c=map(int,input().split())
to take three inputs and even received my desired output
That’s not a syntax error
What Problem are you trying to solve?
Please post either your (formatted!) code or (better!) a link to your submission.
1 Like
You should consider converting the output of the map function to list as in here.
a,b,c = list(map(int,input().split()))
still says same error. i do get the desired output tho. it first gives me the entire output and then shows the error
try this.
a,b,c = map(int,input().split(’ '))
try:
a,b,c=map(int,input().split())
except:
pass
use “try and except” statements . Put your code inside try block and pass the except block.