techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.9K
active users

RecursiveNeuron :verified:

Simple python quiz

A. Line number 2 has invalid syntax. It should be "quiz[2]"

B. It will print ('hello', 'world')

C. Linux number 1 will give an error, we can't mix string with integer in tuple


@DopeGhoti @RecursiveNeuron No, I think it'll be A. Line number 2 has invalid syntax. It should be "quiz[2]"

@actuallyAx @DopeGhoti it's a valid syntax in python. It will get you the elements starting from index 2