156k views
3 votes
Write Python statements that correspond to the actions below and execute them (a) Assign integer value 3 to variable a. (b) Assign 4 to variable b. (c) Assign to variable c the value of expression a * a b *b.

1 Answer

4 votes

Here is code in Python.

#integer value 3 assigned to variable a.

a=3

#integer value 4 assigned to variable v.

b=4

# the value of given expression a * a b *b will be assign to variable c .

c=(a*a)*(b*b)

Step-by-step explanation:

First an integer value is assigned to variable "a".And then integer 4 is assigned to variable "b". Calculate the value of expression a*ab*b and assigned to variable "c". Here expression a*ab*b can also be written as (a*a)*(b*b).

User Haryono
by
6.0k points