Python list initialized with question mark

Home / python / Python list initialized with question mark

Question:
word = [‘?’]
What does the above line initialize in python?

Is that a special type of initialization?


Answer:
It’s initializing a list with a ‘?’ string as its only element.
Read more

Leave a Reply

Your email address will not be published. Required fields are marked *