Skip to main content
August 20, 2021
Question

I have a List of numbers (0 to 9) , Which function will use to print the number

  • August 20, 2021
  • 7 replies
  • 0 views

Hi All,

  

      Could you pls answer the below questions 

1.I have a List of numbers (0 to 9) , Which function will use to print the number 

Thanks in Advance!.

    7 replies

    stefanhelzle0001
    Brainy
    August 20, 2021

    What do you mean with "print"? Only a single number or the whole list?

    Please describe the desired output.

    And when asking questions, following this post is a good way to start.

    codeblog.jonskeet.uk/.../

    August 20, 2021

    Hi Stefan,

    Thank you for your response.

    My Input : 0 to 9 

    I am expecting output is = 0,1,2,3,4,5,6,7,8,9 

    Which function will used to get the above output 

          

    acaciob0002
    August 20, 2021

    Hi there,

    Have you tried  enumerate(10)?

    Regards,

    Acacio B