• Python question of the day

    What is the output of executing the following code snippet:
    salary = 36,567.90
    type(salary)
     int
     float
     tuple
     Runtime Error
    Explanation:
    In python, numerical data cannot have commas separating thousands, millions etc. Comma is assumed to be data separator


    Top 100 python interview questions:


  • python bootcamp 2021
datai analytics