What is Nostr?
๐ŸŒˆ โ˜ฏ๏ธTeresita๐Ÿง๐Ÿ‘ญ /
npub13s2โ€ฆj46a
2024-03-29 18:23:53

๐ŸŒˆ โ˜ฏ๏ธTeresita๐Ÿง๐Ÿ‘ญ on Nostr: Shuffle and deal four hands of five cards with #Python #HK #!/usr/bin/python3 # -*- ...

Shuffle and deal four hands of five cards with #Python #HK

#!/usr/bin/python3
# -*- coding: utf-8 -*-
deck=['๐Ÿ‚ก', '๐Ÿ‚ข', '๐Ÿ‚ฃ', '๐Ÿ‚ค', '๐Ÿ‚ฅ', '๐Ÿ‚ฆ', '๐Ÿ‚ง', '๐Ÿ‚จ', '๐Ÿ‚ฉ', '๐Ÿ‚ช', '๐Ÿ‚ซ', '๐Ÿ‚ญ', '๐Ÿ‚ฎ', '๐Ÿ‚ฑ', '๐Ÿ‚ฒ', '๐Ÿ‚ณ', '๐Ÿ‚ด', '๐Ÿ‚ต', '๐Ÿ‚ถ', '๐Ÿ‚ท', '๐Ÿ‚ธ', '๐Ÿ‚น', '๐Ÿ‚บ', '๐Ÿ‚ป', '๐Ÿ‚ฝ', '๐Ÿ‚พ', '๐Ÿƒ', '๐Ÿƒ‚', '๐Ÿƒƒ', '๐Ÿƒ„', '๐Ÿƒ…', '๐Ÿƒ†', '๐Ÿƒ‡', '๐Ÿƒˆ', '๐Ÿƒ‰', '๐ŸƒŠ', '๐Ÿƒ‹', '๐Ÿƒ', '๐ŸƒŽ', '๐Ÿƒ‘', '๐Ÿƒ’', '๐Ÿƒ“', '๐Ÿƒ”', '๐Ÿƒ•', '๐Ÿƒ–', '๐Ÿƒ—', '๐Ÿƒ˜', '๐Ÿƒ™', '๐Ÿƒš', '๐Ÿƒ›', '๐Ÿƒ', '๐Ÿƒž']
import random
random.shuffle(deck)
deal=''.join(deck)
print (" ".join(deal[1:6]))
print (" ".join(deal[6:11]))
print (" ".join(deal[11:16]))
print (" ".join(deal[16:21]))

Author Public Key
npub13s2qex04s8mu30xnlctfms0aqu9gf9zcce2lx9wm2td072fmykus8xj46a