For loop in python

Discussion in 'Masters Program - Customers only' started by Ved Prakash_7, Jul 18, 2019.

  1. Ved Prakash_7

    Ved Prakash_7 Member

    Joined:
    Jun 26, 2019
    Messages:
    9
    Likes Received:
    3
    In python
    [ 2 ** x for x in range(10)] , can anyone please explain how it is running?
     
    #1
  2. Devanshu_5

    Devanshu_5 Member

    Joined:
    May 10, 2019
    Messages:
    3
    Likes Received:
    0
    2
    4
    16
    32
    64
    128
    256
    512
     
    #2

Share This Page