IT quiz
All questions
Sign in
Sign up
JavaScript
HTML
CSS
PostgreSQL
PHP
Linux
Git
Docker
SCSS
TypeScript
SQL
Vue
DNS
Go
frontend (web)
Redis
backend
Gitlab
CI/CD
Vite
webpack
Node.js
HTTP
Python
Kotlin
Nuxt
Question #234
Author:
admin
tags:
Python
my_list = [['a', 'b'] * 2] * 2 print(my_list) # ??
What will be printed?
['a', 'b', 'a', 'b', 'a', 'b', 'a', 'b']
[['a', 'b'], ['a', 'b'], ['a', 'b'], ['a', 'b']]
[['a', 'b', 'a', 'b'], ['a', 'b', 'a', 'b']]
Answer
Rate the difficulty of the question:
1
2
3
4
5
6
7
8
9
10
easy
hard
←
Previous question (Python)
Write new comment