MulaiMulai sekarang secara gratis

Deck of cards

In this exercise, you'll use the following deck of cards to calculate some probabilities in each step:

Deck of cards

Latihan ini adalah bagian dari kursus

Foundations of Probability in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Ace probability
P_Ace = ____/____

# Not Ace probability
P_not_Ace = 1 - ____

print(P_not_Ace)
Edit dan Jalankan Kode