tactical-coder's blog

By tactical-coder, history, 5 weeks ago,

Hi all, I am new to programming. I am getting a runtime error on Test 1 and I have no clue how to fix it. It would be great if someone pointed out the mistake. This is the problem in python. Note: I tried with some use cases and it worked fine in pycharm. TIA

Code

• limal = int(input(""))
• bob = int(input(""))
• years = 0
• while limal <= bob:

• limal = 3 * limal
• bob = 2 * bob
• years = years + 1 print(int(years))

• 0

 » 5 weeks ago, # |   0 Spoilerlimal,bob = map(int,input().split()) years = 0 while limal <= bob: limal = 3 * limal bob = 2 * bob years = years + 1 print(int(years)) 
•  » » 5 weeks ago, # ^ |   0 Okay. Thank you so much.
»
5 weeks ago, # |
0

limal,bob = map(int,input("").split())

rest code is fine.

years = 0 while limal <= bob: limal = 3 * limal bob = 2 * bob years = years + 1 print(years)