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
Alona [7]
2 years ago
5

How does python show that commands belong inside a python structure?

Computers and Technology
1 answer:
Zielflug [23.3K]2 years ago
6 0

Python show that commands belong inside a Python structure by using indentation to define the code blocks.

<h3>What is Python?</h3>

Python can be defined as a high-level programming language that is designed and developed to build websites and software applications, especially through the use of dynamic commands (semantics) and data structures.

In Computer programming, Python show that commands belong inside a Python structure by using indentation to define the code blocks.

Read more on Python here: brainly.com/question/26497128

#SPJ1

You might be interested in
____ increase network performance by reducing the number of frames transmitted to the rest of the network
Thepotemich [5.8K]

<u>Switches</u> increase network performance by reducing the number of frames transmitted to the rest of the network.

Switches are an integral part of networks assigned the role to serve as the means to share information among different devices.

Switches perform their function by supervising and controlling the flow of data to the intended devices thus preventing the undesired flow of data to all the devices in a network which improves the performance of the network. Switches can also play a role to prevent errors as it checks the data prior to transmitting the data forward.

Switches determine the devices to which the data packets are to be sent by using their media access control (MAC) address. All hardware units connected to a system have their unique MAC address. Switches identify the MAC address of the device that sends the frames and then interpret the MAC address of the target device thus preventing the frames to pass towards the rest of the network.

To learn more about switches, click here:

brainly.com/question/13484447

#SPJ4

6 0
2 years ago
Write a program that accepts a file name from the command line, then initializes an array with test data using that text file as
postnew [5]

Answer:

Complete code is given below:

Explanation:

import java.io.BufferedReader;

import java.io.FileNotFoundException;

import java.io.FileReader;

import java.io.IOException;

import java.util.Arrays;

import java.util.Scanner;

public class ArrayCalcs {

private int size;

String [] parts =null;

// based on number of elements in file, array will create.

double[] arr=null;

public void readFile(String file){

try{

FileReader fr = new FileReader(file+".txt");

BufferedReader br = new BufferedReader(fr);

String line = br.readLine();

int count = 0;

while (line != null) {

parts = line.split(" ");

for( String w : parts)

{

count++;

}

line = br.readLine();

}

size=count;

arr=new double[size];

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

arr[i]=Double.parseDouble(parts[i]);

}

// System.out.println(count);

// System.out.println(Arrays.toString(parts));

System.out.println(Arrays.toString(arr));

} catch (FileNotFoundException ex){

System.out.println("This file does not exist");

} catch (IndexOutOfBoundsException e){

System.out.println("Thie file has more than 7 lines");}

catch (IOException e) {

System.out.println(e.getMessage());

}

}

public double getTotal(){

double sum=0.0;

for(double d:arr){

sum=sum+d;

}

return sum;

}

public double getAverage(){

double avg=getTotal()/arr.length;

return avg;

}

public double getHighest(){

double high=arr[0];

for(int i=0;i<arr.length-1;i++){

if(arr[i] > high)

high = arr[i];

}

return high;

}

public double getLowest(){

double low=arr[0];

for(int i=0;i<arr.length-1;i++){

if(arr[i] < low)

low= arr[i];

}

return low;

}

public static void main(String[] args) {

Scanner s = new Scanner(System.in);

System.out.println("Enter file name:");

String file=s.next();

ArrayCalcs ac=new ArrayCalcs();

ac.readFile(file);

System.out.println(" Highest Element: "+ac.getHighest());

System.out.println("Lowest Element: "+ac.getLowest());

System.out.println("Total: "+ac.getTotal());

System.out.println("Average: "+ac.getAverage());

}

}

4 0
3 years ago
WHHY AM I GIVING POINTS AWAY
Ber [7]

Answer:

Oop thx for the points -w-

6 0
3 years ago
What are the TV resolutions
Leokris [45]
Numbers like 1080p and 4K refer to a TV's<span> screen </span>resolution and<span> the more pixels a screen has the more picture detail it can show.</span>
6 0
3 years ago
1. Problem solving is
Ne4ueva [31]

Answer:

A

Explanation:

1. Problem solving is

(4 Points)

O A. highly interactive

B. collaborative

C. Both And B

D. Designing an App

4 0
3 years ago
Other questions:
  • Is I5 9100 is better than i5 9400
    6·1 answer
  • How many bones are in a human body
    7·2 answers
  • On a pie chart, the different sections or "wedges" show:
    9·1 answer
  • Juan is interested in getting a job in the technological field. He is interested in protecting data from threats, and stopping h
    9·1 answer
  • A bug collector collects bugs every day for seven days. Write a program in Python that finds the highest number of bugs collecte
    11·1 answer
  • Alicia created this list: set goals, establish a reward system, maintain a positive outlook, avoid burnout. What is the best exp
    8·2 answers
  • What is generalization error in terms of the SVM? a. How accurately the SVM can predict outcomes for unseen data b. How far the
    5·1 answer
  • Which of the following is considered a basic task in the context of computer operations? a. Connecting to the Internet b. Natura
    6·1 answer
  • Visme,PowerPoint, keynote and prezi are what kind of software
    15·1 answer
  • Describe what a Bank Run is.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!