create account

Python Program to Shuffle Deck of Cards by python-dev

View this thread on: hive.blogpeakd.comecency.com
· @python-dev ·
$0.44
Python Program to Shuffle Deck of Cards
``` 
# Python program to shuffle a deck of card

# importing modules
import itertools, random

# make a deck of cards
deck = list(itertools.product(range(1,14),['Spade','Heart','Diamond','Club']))

# shuffle the cards
random.shuffle(deck)

# draw five cards
print("You got:")
for i in range(5):
   print(deck[i][0], "of", deck[i][1])
 ```
👍  ,
properties (23)
authorpython-dev
permlinkpython-program-to-shuffle-deck-of-cards
categorypython-dev
json_metadata{"tags":["python-dev"],"app":"hiveblog/0.1","format":"markdown"}
created2020-03-22 11:08:36
last_update2020-03-22 11:08:36
depth0
children2
last_payout2020-03-29 11:08:36
cashout_time1969-12-31 23:59:59
total_payout_value0.220 HBD
curator_payout_value0.220 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length338
author_reputation5,457,648,648,750
root_title"Python Program to Shuffle Deck of Cards"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,537,772
net_rshares1,410,572,703,696
author_curate_reward""
vote details (2)
@hivewatchers ·
[Source](https://www.programiz.com/python-programming/examples/shuffle-card)
[Plagiarism](http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/) is the copying & pasting of others work without giving credit to the original author or artist. Plagiarized posts are considered fraud and violate the intellectual property rights of the original creator. 

Fraud is discouraged by the community and may result in the account being Blacklisted.

If you believe this comment is in error, please contact us in [#disputes on Discord](https://discord.gg/YR2Wy5A)
properties (22)
authorhivewatchers
permlinkre-python-dev-python-program-to-shuffle-deck-of-cards-20200401t121229221z
categorypython-dev
json_metadata{"app":"hivewatchers/0.4","format":"markdown+html","community":"hivewatchers"}
created2020-04-01 12:12:30
last_update2020-04-01 12:12:30
depth1
children0
last_payout2020-04-08 12:12:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length563
author_reputation-81,697,209,573,209
root_title"Python Program to Shuffle Deck of Cards"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,665,565
net_rshares0
@steemcleaners ·
$0.85
[Source](https://www.programiz.com/python-programming/examples/shuffle-card)
[Plagiarism](http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/) is the copying & pasting of others work without giving credit to the original author or artist. Plagiarized posts are considered fraud and violate the intellectual property rights of the original creator. 

Fraud is discouraged by the community and may result in the account being Blacklisted.

If you believe this comment is in error, please contact us in [#disputes on Discord](https://discord.gg/YR2Wy5A)
👍  , ,
properties (23)
authorsteemcleaners
permlinkq83z8o
categorypython-dev
json_metadata{"links":["https://www.programiz.com/python-programming/examples/shuffle-card","http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/","https://discord.gg/YR2Wy5A"],"app":"hiveblog/0.1"}
created2020-04-01 12:12:27
last_update2020-04-01 12:12:27
depth1
children0
last_payout2020-04-08 12:12:27
cashout_time1969-12-31 23:59:59
total_payout_value0.425 HBD
curator_payout_value0.425 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length559
author_reputation2,789,224,428,782,668
root_title"Python Program to Shuffle Deck of Cards"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,665,564
net_rshares3,313,332,608,052
author_curate_reward""
vote details (3)