【Python 千题 —— 基础篇】参加聚会

题目描述

题目描述

我们向五名同学(Alan、Bob、Candy、Eric、Sandy)发送了各发送了一封聚会邀请邮件,Alan、Candy 与 Sandy 都表示会参加,Bob 与 Eric 都表示不会参加;对于会参加的同学,将会回复 “I’m xxx. I’ll come to the party.”,对于不参加的同学,将会回复 “I’m xxx. Sorry, I won’t come to the party”。借助字典完成本题。

输入描述

输出描述

依次输出每个人回复的邮件。

示例

示例 ①

输出:

I'm Alan. I'll come to the party.
I'm Bob. Sorry, I won't come to the party.
I'm Candy. I'll come to the party.
I'm Eric. Sorry, I won't come to the 

你可能感兴趣的:(Python,千题,Python,从入门到精通系列教程,Python,汇总教程,python,算法,java,开发语言,git,github,windows)