how to make 4 random numbers in python code example
Example 1: random number python
# generate random integer values
from random import randint
value = randint(0, 10)
print(value)
Example 2: python random list
# vowels list
vowels = ['a', 'e', 'i', 'o', 'i', 'u']
# count element 'i'
count = vowels.count('i')
# print count
print('The count of i is:', count)
# count element 'p'
count = vowels.count('p')
# print count
print('The count of p is:', count)