联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp2

您当前位置:首页 >> Python编程Python编程

日期:2021-07-13 09:36

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.


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。