Coding Quiz Zone
前往频道在 Telegram
✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!
显示更多1 550
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
1 550
What will be the output of the following Python code?
D=dict(p='san', q='foundry') '{p}{q}'.format(**D)
1 550
What will be the output of the following Python code?
'{a}{b}{a}'.format(a='hello', b='world')
1 550
The output of the two codes shown below is the same.
i. bin((2**16)-1) ii. '{}'.format(bin((2**16)-1))
1 550
What will be the output of the following Python code?
hex(255), int('FF', 16), 0xFF
1 550
The formatting method {1:<10} represents the ___________ positional argument, _________ justified in a 10 character wide field.
1 550
The output of the two codes shown below is the same.
i. '{0:.2f}'.format(1/3.0) ii. '%.2f'%(1/3.0)
1 550
What will be the output of the following Python code?
'%x %d' %(255, 255)
1 550
What will be the output of the following Python code?
'{0:.2f}'.format(1.234)
1 550
What will be the output of the following Python code?
'{a}, {0}, {abc}'.format(10, a=2.5, abc=[1, 2])
