xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to get a random integer number from a list in Python
Python Online Editor
Execute Code
More Python Sample Codes
import random # import random module # To get a random number from an integer list using choice() function int_list = [1, 2, 3, 4, 5, 6, 7, 8, 9] random_num = random.choice(int_list) print(random_num)