what's wrong with this python code i don't know what's wrong with both of them

What's Wrong With This Python Code I Don't Know What's Wrong With Both Of Them
What's Wrong With This Python Code I Don't Know What's Wrong With Both Of Them

Answers

Answer 1

Answer:

Keep it in the format

first one:

def swapping_stars():

   line_str = ""

   for line in range(6, 8):

       for char in range(0, 6):

           if line % 2 == char % 2:

               line_str = line_str + "*"

           else:

               line_str = line_str + "-"

           print(str(line_str))

swapping_stars()

second one:

if you want it to go:

23456

def print_numbers(list):

   for i in range(1, len(list)):

       print(str(list[i]))

num_list = [1, 2, 3, 4, 5, 6]

print_numbers(num_list)

if you want it to go

123456

def print_numbers(list):

   doneONE = False

   for i in range(1, len(list)):

       if not doneONE:

           print(str(list[i] - 1))

           doneONE = True

       print(str(list[i]))

num_list = [1, 2, 3, 4, 5, 6]

print_numbers(num_list)

Explanation:


Related Questions

what type of network is the internet

Answers

Answer:

The internet is considered as Wide Area Network (WAN).

I’ll mark brainliest if correct

Select the correct answer.
Derek works in the software quality assurance department. Which tools or process should Derek use to monitor and measure changes?

A.software engineering process

B.software quality metrics

C. SQA audits

D.reviews

Answers

Answer:

A.

Explanation:

Have a Nice Day

Answer:

answer: software quality metrics

can you help me with my homework what should i do

Answers

Answer:

what is matter and two examples

What form of infrastructure improved trade and communication among Roman cities?

aqueducts
canals
reservoirs
roads

Answers

Answer:

aqueducts

Explanation:

Answer:

c

Explanation:

Readable code includes the use of
color and symbols to make the code look good.
consistent and meaningful variable names, helpful comments, and formatting.
variable names that do not vary from program to program.
comments that include the programmers' reactions to a particular piece of code used.

Answers

Answer:

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBbBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBbbbbbbbbbbbbbbbbbbbbbbbbBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

Explanation:

The Readable code includes the use of color and symbols to make the code look good is; A consistent and meaningful variable names, helpful comments, and formatting.

Since Readable code is crucial for software development. It makes it easier for programmers to understand, modify, and maintain the code. It is well-organized, with consistent and meaningful variable names, helpful comments, and proper formatting.

Using consistent and meaningful variable names allows programmers to easily understand what the variable represents.

Helpful comments also play a crucial role in making the code readable. Comments should be used to explain, the code is doing, why it is doing it, and any other important details that would help programmers understand the code.

Formatting is also essential in making the code readable.

In summary, readable code includes consistent and meaningful variable names, helpful comments, and proper formatting.

Learn more about the code here;

https://brainly.com/question/14278291

#SPJ4

Need help:(!!!! I’ll mark brainliest if correct

Select the correct answer.
Which software development team member would make the most use of the tool, Load Runner?
A.
software engineer
OB.
programmer
OC.
business analyst
OD
tester

Answers

Answer:

software engineer is the answer

Explanation:

g

Complete the sentence.
A requirements document is created during the ______ phase of software development.

Coding

Release

Design

Planning

Answers

Answer:

Release

Explanation:

Answer:

its planning

Explanation:

took the test

What is HTML? (list down any 5 points)

Answers

Answer:

The HyperText Markup Language, or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.HyperText Markup Language (HTML) is the set of markup symbols or codes inserted into a file intended for display on the Internet. The markup tells web browsers how to display a web page's words and images.

Explanation:

If this doesn't answer your question tell me and i'll fix it.

Prompt Using complete sentences post a detailed response to the following. Give one example of digital art that you have seen today and where you saw it. Where do you most frequently see digital art? What does it say about our culture?

Answers

Answer:

Digital art forms can be frequently seen in film, television and video games

Explanation:

There are various forms of digital arts such as Fractal/Algorithmic Art, Dynamic Painting, Pixel Art, computer graphics, etc. I have seen computer graphic in a movie today.  

Most of the digital art forms are used as a conceptual drawing in film, television and video games

i really want to know the best way to deal as much heart as possible plz tell me

Answers

Answer:

Set aside time every day for doing something that feels positive, whether that’s journaling, meeting up with a close friend, or watching a show that makes you laugh. Scheduling in moments that bring you joy is vital for healing a broken heart. It’s important to talk about your feelings with others and not numb yourself out.

Explanation:

secgcdesxeeeddfsexdddffdf

Why does a compiled-language program need more memory than an equivalent interpreted-language program during program execution
OA to store source code
O B. to store object code
Ос. to store machine code
D. to debug the program​

Answers

Answer:

The answer is B

Explanation:

In what year was the first powered airplane flight in Europe?

Answers

October 23, 1906 8s when the first powered flight took place in Europe.

Answer:

October 23, 1906 was when the first powered flight took place in Europe.

Explanation:

Who has gotten a random file link from someone? What file does it contain?

Answers

Answer:

those are bots , just report those

Explanation:

I got it but I didn’t download it cuz it looks sketchy he literally posted that same link to everyone who has made a question so I would advise not to download it

PLEASE HELP I mainly only need the answer for 4.

Answers

Answer:

it is asking for https response

A(n) ________ HTML tag is used to mark information about the page.

Metadata

Mead

img

Hyperlink

Answers

An Metadata HTML tag is used to mark information about the page.

What are HTML element?

An HTML element are known to be a kind of HTML document parts, one of plenty types of HTML nodes.

Note that an HTML document is made up of a tree of some specific HTML nodes, example is text nodes, and HTML elements, that are said to add semantics and formatting to some areas of document. And so, Metadata HTML tag is used to mark information about the page.

Learn more about HTML tag from

https://brainly.com/question/9069928

Answer: metadata

Explanation: got it right on edgen

You are trying to connect a new USB device to your computer. You install the driver and then connect the device to an open USB
port. The device does not work.
Which of the following troubleshooting steps is the BEST to try first?
A. Try a different USB cable.
B. Replace the USB device.
C. Install a new USB controller card.
D. Make sure the USB device is plugged in properly.

Answers

Answer:

By order of increasing magnitude:

D. Make sure the USB device is plugged in properly.

A. Try a different USB cable.

B. Replace the USB device.

C. Install a new USB controller card.

Explanation:

Start with whatever is simplest first. Most errors are simply ID-10-T mistakes.

How do we know if we can believe the things on the internet?

Answers

Answer:

you have to check for reliability

Explanation:

Answer:

you can't always believe the internet some stuff is false are bended

Explanation:

yea

Need the answer ASAP!!!!

Select the correct answer.
Which software development team member would make the most use of the tool, Load Runner?
O A.
software engineer
OB.
programmer
OC.
business analyst
OD.
tester

Answers

Answer:

software engineer is the answer

please helpppp me!! thank youuu :)

Answers

Answer:

3?

Explanation:

what is the best to deal the most hearts in mine craft

Answers

Kskakakakkakajajajdbdbjdjajsbbda

Answer:

what does this mean

Explanation:

oh nvm I get it but it depends what you play on if you play on console or phone its a fully enchanted nephrite sword but on a computer is a fully en chanted axe you can see the order to enchant so you don't mess it up

You were recently hired by a small start-up company. The company is in a small office and has several remote employees. You have been asked to find a business service that would accommodate the current size of the company, but would also be able to scale as the company grows. The service needs to provide adequate storage, as well as additional computing power. Which cloud service model should you use

Answers

Answer:

Infrastructure as a Service (IaaS)

Explanation:

Infrastructure as a Service, are services based online that provide a client with required server infrastructures including networking services, storage services, virtual environment services, security, processing services based, and scaling by using high-level API's that redirects the low-level data of the underlying network on a leasing or rent arrangement, such that the operation and maintenance cost of the servers are taken care of by the service provider.

(50 POINTS) A folder has been shared with other users and set to read-only. What does this mean for users?
Users can only read the name of the shared folder.
Users cannot add new folders or files.
Users can read and edit files.
Users can add new files but not new folders.

Answers

i believe it would be “users cannot add new folders or files” i think they can only read what’s in the folder.

Answer:

B

Explanation:

Irene is creating a wireframe of a website she is working on to show her client. In which phase of the development process is she?

A. planning

B. design

C. development

D. testing

Answers

Answer:

The Answer Is B: Design

Explanation:

I took the test on edmentum and it was correct your welcome m8 :)

Does any body know how to program a video game?
Because a got an idea

Answers

Answer:

well you have to take classes or use easier systems like scratch

Explanation:

Define self-esteem: A how I feel about myself B how I visualize myself C how I esteem myself

Answers

Answer:

A how I feel about myself

Explanation:

Self-esteem is your overall opinion of yourself — how you feel about your abilities and limitations. When you have healthy self-esteem, you feel good about yourself and see yourself as deserving the respect of others. When you have low self-esteem, you put little value on your opinions and ideas.

What are good components to preorder a PC with that are cheep? It would be my first PC by the way.

Answers

Answer:

Good Components

.CPU AMD Threadripper 3960X Amazon

.CPU cooler NZXT Kraken X63 (280mm AIO liquid cooler) Overclockers

.GPU Zotac Gaming GeForce GTX 1660 6GB CCLonline

.Memory 32GB Corsair Dominator Platinum RGB 3200MHz Scan

Explanation:

Would you want a prebuilt? I know a very good prebuilt and custom build company called NZXT. They have very good parts and very good ratings. I know prebuilts are shamed on, but I promise you, one of the NZXT prebuilts are great.

Doug grew up on a large farm in southwest Wisconsin. As a college graduation gift, Doug’s father gave him several hundred acres of land to raise organic soybeans, grain, and corn. Doug works the fields by himself, negotiates deals with buyers, repairs equipment, and handles all the accounting and financial issues for the business, which is called The Natural Element.

Answers

Answer: Sole Proprietorship.

Explanation:

This question wants to know what type of business is described in the scenario.

In a Sole Proprietorship, the owner of the business is essentially the business itself. They control all aspects of the business from the operating activities to the financial activities of the firm. This is usually the first stage business type in an entrepreneurship.

The definition of a sole proprietorship above fits with what Doug does. Doug is the owner of the farming business and seems to be handling all aspects of it by himself. This would therefore make it a sole proprietorship.

What is climate and how is it formed? What can cause climate change.

Answers

Answer: Climate is the weather and conditions over time (at least a year).

The things that start climate change are burning fossil fuels and tearing down forests to start construction.

Answer:

climate can be defined as weather.

Write Java code that creates an array of n integers myArray, by taking n integers from the user with duplications, and do the following:
1- Print the elements of myArray,
2- Calculate the sum and the mean of myArray elements,
3- Copy the values of myArray to an array list named myArrayList, the array list must contain the elements of myArray without duplication,
4- Calculate the sum and the mean of myArrayList elem

Answers

Answer:

this should be what you need

Explanation:

import java.util.*;

public class ABC{

 public static void main(String[] args) {

   int n;

   //create scanner object

   Scanner sc = new Scanner(System.in);

   //ask for size of array

   System.out.print("Enter the size of array (n): ");

   //read the input

   n = sc.nextInt();

   //create an array of n length

   int [] myArray = new int[n];

   //ask user for array elements

   System.out.printf("Enter %d integers: ", n);

   //read array elements

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

     myArray[i] = sc.nextInt();

   

   //print the elements if myArray

   System.out.print("1 - The values of myArray are: [");

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

     System.out.print(myArray[i]);

     if(i < n-1)

       System.out.print(", ");

   }

   System.out.print("]\n");

   //calculate mean and sum of myArray elements

   int sum = 0;

   double mean = 0;

   for(int i = 0; i < n; i++)

     sum += myArray[i];

   

   mean = (sum*1.0)/n;

   //print the sum and mean of myArray

   System.out.printf("2 - The sum is: %d. The mean is: %.1f\n", sum, mean);

     

   //create an arraylist

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

   //copy the value of myArray to an arraylist without duplicates

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

     if(!myArrayList.contains(myArray[i]))

       myArrayList.add(myArray[i]);

   }

   sum = 0; mean = 0;

   //display the values of myArrayList

   System.out.print("3 - The values of myArrayList are: [");

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

     System.out.print(myArrayList.get(i));

     if(i < myArrayList.size()-1)

       System.out.print(", ");

   }

   System.out.print("]\n");

   //calculate sum and mean of myArrayList elements

   for(int i = 0; i < myArrayList.size(); i++)

     sum += myArrayList.get(i);

   mean = (sum*1.0)/myArrayList.size();

   //print the sum and mean of myArrayList

   System.out.printf("4 - The sum is: %d. The mean is: %.2f\n", sum, mean);

 }

}

Match each storyboarding technique with its appropriate description.​

Answers

Answer:

Hierarchical – Option C

Linear – Option D

Webbed - Option A

Wheel - Option B

Explanation:

Hierarchical means something that follows the order from general to specific .  

Hierarchical – Option C

Linear means something that follows the order from general to specific .

Linear – Option D

Webbed – There is no order in flow of information or it is inconsequential. Hence, option A

Wheel - means the flow is sequential i.e as per the sequence

Wheel – Option B

Other Questions
Sebastian's Bagel Shop recorded how many bagels it recently sold in each flavor.plain bagels6onion bagels 6poppy seed bagels 4What is the experimental probability that the next bagel sold will be a poppy seed bagel?Write your answer as a fraction or whole number.P(poppy seed bagel)CAN YOU ALSO EXPLAIN HOW YOU DID IT PLEASE Carlos va a comprar un televisor que tiene un costo de c dolres. El impuesto gubernamentalde valor aadido es del 16%. Cul es la ecuacin que MEJOR modela el pago total endlares, p, que har Carlos en est en esta compra? * Which of the following would best support a claim that most people feel hopeful about the future of the economy? (5 points) a A table showing results of the survey, along with details of the questions asked b A summary of the findings and an interview with the group collecting the responses c An interview with one or two subjects from the survey group d An excerpt of questions from the survey, with an explanation of the process Pls help Ill give brainliest if you show ur work Let f(x)=-2x+6 and g(x)=10x-8[tex]\frac{f}{g} (-3)[/tex] Lesbian women were largely ignored by the Nazi administration.TrueFalse Which expressions listed on the left are equivalent to 36a^8/225a^2? Check all that apply. (Assume that a 0.) 1. What are the two main gases responsible for lowering down the pH. 2. Can we control an acid rain? Why or Why not? 3. When pH changes from 6 to 3, how many times does acidity increase? How could nanotechnology best be used to improve the treatment of cancer with chemotherapy?A. A nanometer-size carrier could be designed to bring the chemotherapy drugs only to cancer cells.B. A nano carbon wire could be designed that would aid in the manufacture of chemotherapy drugs.C. A quantum dot could be used to watch where the chemotherapy drugs go in the body.D. Biomaterials could be made that would allow for cell growth within the cancer cells so that they are easier to find. Explain in words how you would graph the following inequality on a number line. 3x < 12 HELPPPPPPPPPPP PLSSSSSS Help I need help I dont understand references for human rights violations March why do blades come in different lengths in a jig saw sander? Find the value of one of the variables. Help ANswer these questuons According to the text, Street Art makes use of the urban landscape as inspiration. Select the option that lists examples of urban landscape.1) Buildings2) Railway stations3) Lakes and streams4) Community Parks5) Parking lots6) Farma) 2,4,5 & 6b) 1,2,4 & 5c) 2,4 & 6d) 1,3 & 5 A student said, I wasnt at all surprised by the disappearance of the stranger child at the end of the extract. The writer has left us in no doubt that she is just part of Rosies imagination.To what extent do you agree? In your response, you could: consider the disappearance of the stranger child evaluate how the writer presents the stranger child support your response with references to the text.[20marks] A force of 20 newtons is used to much a box a distance of 2 meters. How much work was done? answer this if you know no links or ill report55+655 I know this may seem annoying, but how did you get 13/3 and 4/4 from 3 1/4 and 3/4?