116k views
2 votes
PLS HURRRYYYYYY!1!1!1!1!1

You have used different ways to store data. Match each definition with its type.

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

movie = 'Star Wars'

movieStars = ['Carrie Fisher', 'Harrison Ford']

movieRatings = {5:'language', 3:'violence'}

movieID = 132

movieCost = 4.95


Vocab:

Float

Tuple

int

string

list

dictionary

User SuperStew
by
5.6k points

2 Answers

2 votes

Final answer:

The different ways to store data in the given problem are Float, Tuple, String, List, Dictionary, and Int.

Step-by-step explanation:

The subject of this question is Computers and Technology and the grade level is High School.

The data types used in the given problem are:

  • Float: This data type is used to store decimal numbers. For example, movieCost has a value of 4.95.
  • Tuple: A tuple is an ordered collection of elements. In this case, movieAwards is a tuple containing the strings 'Oscar', 'Golden Globe', and 'Director's Guild'.
  • String: A string is a sequence of characters. The variable movie stores the string 'Star Wars'.
  • List: A list is an ordered collection of elements. movieStars is a list containing the strings 'Carrie Fisher' and 'Harrison Ford'.
  • Dictionary: A dictionary is a collection of key-value pairs. movieRatings is a dictionary with keys 5 and 3, and their corresponding values are 'language' and 'violence'.
  • Int: An int is a whole number. movieID is an int with a value of 132.

User Jackie Honson
by
5.6k points
5 votes

movieID = 132 Int

movieCost = 4.95 Float

movie ='Star Wars' string

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

movieStars = ['Carrie Fisher', 'Harrison Ford'] list

movieRatings = {5:'language', 3:'violence'} dictionary

If you want these explained , can do in replies :)

User Paul Podgorsek
by
5.1k points