• 6 heures
  • Facile

Ce cours est visible gratuitement en ligne.

course.header.alt.is_certifying

J'ai tout compris !

Mis à jour le 02/08/2023

Structure Your Code Within a Project

Compétences évaluées

  • Structure your code within a project
  • Question 1

    How can you change the following  num  variable:

    Into:

    • num[2] = 'two'

    • num[1] = 'two'

    • num['two'] = 2

    • num['two'] = '2'

  • Question 2

    Which of the following four statements about lists in Python is true?

    • All items of a list must be of the same type.

    • A list can contain any type of object except another list.

    • These two lists are equivalent:   ['a', 'b', 'c']  and   ['c', 'a', 'b'].

    • A list has no conceptual size limit!

  • Question 3

    Which of the following statements is false about collections?

    • A tuple is an ordered object.

    • A list can be modified.

    • A dictionary is not mutable.

    • A tuple is defined with parentheses.

Et si vous obteniez un diplôme OpenClassrooms ?
  • Formations jusqu’à 100 % financées
  • Date de début flexible
  • Projets professionnalisants
  • Mentorat individuel
Trouvez la formation et le financement faits pour vous