• Python question of the day

    What would be the output of executing the following code:
    d = map(lambda c: chr(ord(c) + 1), "Oxsgnm")
    print(''.join(d))
     python
     Python
     PYTHON
     TypeError
    Explanation:
    In python, the ord( ) function accepts a string of length 1 as an argument and returns the unicode code point representation of the passed argument and here we are advancing one character at a time


    Top 100 python interview questions:


  • python bootcamp 2021
datai analytics