讲解program编程、辅导Python语言程序

- 首页 >> Algorithm 算法
Requirements
1.The python file name shall be Random_PlayingCards.py
2.Use a typical 52-card deck.
3.Ask user to input the number between 1 – 40. That the # of cards that will be dealt.
4.Validate the input value
5.Each card is randomly selected from the deck of cards.
6.When a card is chosen (between 1 – 52), display the card value by suit and rank (i.e. Ace of Spades).
7.Research how cards are stored in a deck (i.e. 1 = Ace of Clubs, 52 = King of Diamonds).
8.Format the output so easy to read.
9.All of the code must be developed by you.
10.Submit only the Python file.

Advance Programming.
1.This is optional: To make the program more realistic, don’t allow the same card to be dealt more than once. For example, if card 25 was already dealt, do not allow the card to be dealt again.