Python Evaluation

Sort by

recency

|

251 Discussions

|

  • + 0 comments

    var=input("") result=eval(var)

  • + 0 comments

    i can't solve this problem all of the things you tried didn't work

  • + 0 comments

    it doesnt work

  • + 0 comments

    For Python3 Platform

    This line only works when there is "print" word in the given string. Or else, we have to write it separetely to print the output

    eval(input())
    
  • + 0 comments
    expression = input()
    eval(expression)