Click here to Skip to main content
14,930,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if I am using
Python
l,b = int(input().split())

or
Python
l , b = input().split()

what's wrong in this?
typeError is ..................
int() argument must be a string, a bytes-like object or a number, not 'list'

What I have tried:

Python
for _ in range(int(input())):
    l , b = int(input().split())
    def hcf(l,b):
        if b==0:
            return l
        else:
            return hcf(b,l%b)
    print(hcf(l,b))
Posted
Updated 5-May-21 5:53am

1 solution

Same problem - and same solution - as your other question: Why codechef is showing runtime error in my code?[^]
   
Comments
Muskan Verma 2021 5-May-21 11:58am
   
yes, sir. got it. thanks a lot.
OriginalGriff 5-May-21 12:11pm
   
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900