Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
CodingShell
  • Subscribe
  • Blog
  • About

    Arie Bregman

    • Twitter
    • GitHub

    Python Cheatsheet

    less than 1 minute read

    topics

    • Lists
      • Generate a list with 10 random numbers

    Lists

    Generate a list with 10 random numbers

    import random
    
    [random.randint(1, 50) for iter in range(10)]
    

    Categories: python

    Updated: December 01, 2019

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    • Creative Commons License
    • Twitter
    • GitHub
    • Feed
    © 2023 Coding Shell. Powered by Jekyll & Minimal Mistakes.