62.0k views
2 votes
Could you please check my answers to this layout user defined data types

Could you please check my answers to this layout user defined data types-example-1
User Nanhydrin
by
5.6k points

1 Answer

6 votes

movieStars = ['Carrie Fisher', 'Harrison Ford'] is a list. Dictionaries have curly braces not brackets.

movieCost = 4.95 is a float

movieRatings = {5:'language', 3:'violence'} as I stated previously, dictionaries have curly braces and lists have brackets.

movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild') is a tuple

movieID = 132 is an int. Integers are whole numbers with no quotation marks.

movie = 'Star Wars' is a string. Strings have quotes around them.

User Vicko
by
5.4k points