Relative Content

Tag Archive for pythonlistloops

Run a loop for 2 random objects in a list – Python

Hello i would like to run a loop like on a list
the list is like
cards = [“11”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”,”10″, “10”, “10”, “10”, “10”]
and like i need it to select 2 random objects it can be the same or not doesn’t matter.
and then store those 2 in another list.

Loop with Lists ( Python)

The company ‘Coding Star’ is growing. In the foreseeable future, the company will offer training in several professional