• Python question of the day

    What would be the output of executing the following code:
    print(sorted('Data Science')[2])
     a
     c
     D
     S
    Explanation:
    sorted() function will sort spaces and special characters first, then UPPER Case letters in alphabetical order and then lower case letters in alphabetical order


    Top 100 python interview questions:


  • python bootcamp 2021
datai analytics