Respuesta :

Lanuel

A fragment of code in Python which would assign the greater of the two variables (x and y) to another variable named max is as follows:

max = x

if y > max:

   max = y

What is a variable?

A variable can be defined as a specific name which refers to a location in computer memory and it is typically used for storing a value such as an integer.

This ultimately implies that, a variable refers to a named location that is used to store data in the memory of a computer. Also, it is helpful to think of variables as a container which stores (holds) data that can be changed in the future.

In this scenario, we would assume that the variables x and y have each been assigned an int value. Therefore, a fragment of code in Python which would assign the greater of the two variables (x and y) to another variable named max is as follows:

max = x

if y > max:

   max = y

Read more on variable here: https://brainly.com/question/14447292

#SPJ1