Python в тестах
3.15K subscribers
231 photos
24 links
Тесты по языку Python. Никакой воды.

@anothertechrock
Download Telegram
Channel created
What will be the output?
print(float('nan') + 10)
Anonymous Quiz
13%
10
14%
nan
20%
nan + 10
48%
Error
5%
Check answer
👍2
🦄1
What will be the output?
print([] is [])
Anonymous Quiz
60%
True
31%
False
9%
Check answer
👍2
We have a list s = ['a', 'b']. How to get the string 'ab' from it?
Anonymous Quiz
14%
sum(s)
11%
str(s)
55%
"".join(s)
10%
s.string()
7%
No way
4%
Check answer
👍2
Which method of lists inserts an element at a given position?
Anonymous Quiz
19%
append
62%
insert
6%
extend
6%
add
4%
None of these
3%
Check answer
👍1
What will be the output?
print(list([]))
Anonymous Quiz
47%
[]
8%
[[...]]
31%
[[]]
10%
list([])
4%
Check answer
👍1