Python runtime Error

hello pyhton coders,i am trying to learn python and i am not getting why everytime i get Runtime error.Here’s my simple code for multiplication of two numbers

Here is your updated code.

  1. raw_input() takes string as input so you need to typecast it into integer or use simple input().

  2. you have to decrement the value of t inside while loop. Python is all about indentation!

    while t:
    print l

1 Like

sir,in what situation i use raw_input()…only in case of string

yes! raw_input() always takes input as string…

Read here : raw_input function in Python - Stack Overflow