• 6 hours
  • Easy

Free online content available in this course.

course.header.alt.is_certifying

Got it!

Last updated on 8/2/23

Structure Your Code Within a Project

Evaluated skills

  • 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.

Ever considered an OpenClassrooms diploma?
  • Up to 100% of your training program funded
  • Flexible start date
  • Career-focused projects
  • Individual mentoring
Find the training program and funding option that suits you best