描述
牛牛、牛妹和牛可乐正在Nowcoder学习Python语言,现在给定他们三个当中的某一个名字name,
假设输入的name为Niuniu,则输出 I am Niuniu and I am studying Python in Nowcoder!
请按以上句式输出相应的英文句子。
输入描述:
一行一个字符串表示名字。
输出描述:
假设输入的name为Niuniu,则输出I am Niuniu and I am studying Python in Nowcoder!
请按以上句式输出相应的英文句子。
示例1
输入:
Niuniu输出:
I am Niuniu and I am studying Python in Nowcoder!
解答:
name = input()
print('I am %s and I am studying Python in Nowcoder!'%name)
#print('I am {} and I am studying Python in Nowcoder!'.format(name))
#print('I am {} and I am studying Python in Nowcoder!'.format(name))
说明:
考查print函数的格式化输出知识点