bitcoin
bitcoin

$59006.193129 USD

1.28%

ethereum
ethereum

$1661.332716 USD

1.61%

tether
tether

$0.997851 USD

-0.06%

bnb
bnb

$538.955253 USD

2.39%

usd-coin
usd-coin

$0.999902 USD

-0.01%

xrp
xrp

$0.913476 USD

1.80%

solana
solana

$69.040176 USD

1.64%

tron
tron

$0.303101 USD

0.21%

hyperliquid
hyperliquid

$60.025698 USD

1.96%

zcash
zcash

$780.730135 USD

5.97%

monero
monero

$484.151346 USD

10.50%

dogecoin
dogecoin

$0.054064 USD

1.42%

unus-sed-leo
unus-sed-leo

$9.130164 USD

0.27%

chainlink
chainlink

$8.534407 USD

2.01%

cardano
cardano

$0.141421 USD

1.43%

Cryptocurrency News Video

9. List and tuples in Python | Fun with Lists: Virtual Coin Toss. and Random Name Selector programs

Mar 30, 2024 at 06:07 pm Civil Wizard

Welcome to my latest video on solving programming challenges with lists! In this video, I tackle three exciting problems using Python. Join me as we dive into the world of lists and explore their versatility.

Timestamps:
00:00 - Introduction
02:05 - List Indexing
03:35 - List Methods
06:05 - Tuple
06:46 - Problem 1: Virtual Coin Toss
08:20 - Problem 2: Storing Fruits in a List
10:21 - Problem 3: Random Name Selector for the Food Bill
14:30 - Conclusion and Wrap-up

In the first problem, I demonstrate how to write a program for a virtual coin toss. You'll learn how to use Python's random module to generate random outcomes of "Heads" or "Tails" and display the result to the user.

Moving on to the second problem, I show you how to create a program that allows the user to enter seven fruits, which are then stored in a list. I'll guide you through the steps of accepting user input, validating it, and populating the list with the entered fruits.

Lastly, we tackle an interesting challenge in problem three. I'll teach you how to randomly select a name from a list of names. We'll use the random module once again to ensure a fair selection process. The lucky person chosen will have the honor of paying for everyone's food bill!
Video source:Youtube

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Other videos published on Nov 23, 2026