1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AlekseyPX
3 years ago
6

Write Python statements that correspond to the actions below and execute them (a) Assign integer value 3 to variable a. (b) Assi

gn 4 to variable b. (c) Assign to variable c the value of expression a * a b *b.
Computers and Technology
1 answer:
snow_tiger [21]3 years ago
5 0

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)

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

You might be interested in
Create a list with 5 numbers and find the smallest and largest number in the list and also the sum and product of the numbers in
rusak2 [61]

Answer:

Explanation:

The following code is written in Java. It creates 5 random integers and saves them to a list called myList. Then it loops through that list and checks each one until the largest and smallest values are obtained. Finally, it uses these values to calculate the sums and products as requested. The program has been tested and the output can be seen in the attached image below.

import java.util.ArrayList;

import java.util.Arrays;

import java.util.Random;

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       Random rand = new Random();

       ArrayList<Integer> myList = new ArrayList<>();

       for (int i = 0; i< 5; i++) {

           int mynum = rand.nextInt(20);

           myList.add(mynum);

       }

       int largest = myList.get(0);

       int smallest = myList.get(0);

       int sum = 0;

       int product = 1;

       int sumLargestandSmallest, productLargestandSmallest;

       for (int x : myList) {

           if (x > largest) {

               largest = x;

           }

           if (x < smallest) {

               smallest = x;

           }

           sum += x;

           product *= x;

       }

       sumLargestandSmallest = largest + smallest;

       productLargestandSmallest = largest * smallest;

       System.out.println("List" + Arrays.toString(myList.toArray()));

       System.out.println("Smallest: " + smallest);

       System.out.println("Largest: " + largest);

       System.out.println("Sum: " + sum);

       System.out.println("Product: " + product);

       System.out.println("Sum of Smallest and Largest: " + sumLargestandSmallest);

       System.out.println("Product of Smallest and Largest: " + productLargestandSmallest);

   }

}

6 0
3 years ago
PLS HELPPPPPP According to O*NET, what are the three most common levels of education earned by Clergy?
Evgen [1.6K]

Answer:

bachelor’s degree

master's degree

post-baccalaureate certificate

Explanation:

Edited my answer

3 0
3 years ago
Read 2 more answers
PLEASE HELP!! THIS IS DUE TODAY!!
boyakko [2]

Answer:

The piece of technology I use the most is my computer. I use my computer to study, look for useful information, and for entertainment.

Explanation:

Hope this helps <3

7 0
3 years ago
Read 2 more answers
i want to write a program that display that pattern *********** *********** *********** *********** *********** *********** ****
kodGreya [7K]
Im sorry, but for me to answer the question, I need the full question
4 0
4 years ago
1.is there a digital way to mark your favorite website in the internet?Expound your thoughts.
charle [14.2K]

Yes, there is a way to mark your favourite website on the internet by adding it to bookmark

Explanation:

No, I didn't find it difficult to create a bookmark.

It was easy you just have to click on the bookmark button

5 0
3 years ago
Other questions:
  • Technician A says that if a valve is open when a piston rises to the very top of a cylinder, the piston may actually strike the
    13·1 answer
  • All phones must have a way of making and then terminating a connection to the phone network; however the exact procedure for doi
    6·1 answer
  • A ___________ lists all possible packet switches and gives a next hop for each.
    12·1 answer
  • Renting provides _________ flexibility but can lead to _________ costs in the long-term.
    14·2 answers
  • You run a small network for your business that has a single router connected to the Internet and a single switch. You keep sensi
    11·1 answer
  • List six parts of a computer system and which are output and which is an input device
    5·1 answer
  • An ____ is a collection of tools, features, and interfaces that enables users to add, update, manage, access, and analyze the co
    10·1 answer
  • 2 4. What is one way to prepare for building a project budget? (1 point)​
    9·1 answer
  • Tyler is feeling overwhelmed by the programming assignment from his supervisor and wants to break the task down into smaller, mo
    5·2 answers
  • Multiple Choice: Circle the letter that corresponds to the correct answer.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!