Computers and Technology
Computers and Technology, 11.06.2021 01:10, tyreque

What is wrong with this code and correct it. def swapping_stars():

line_str = ""

for line in range(0, 6):

for char in range(0,6):

if line % 2 == char % 2:

line_str += "*"

else:

line_str += "-"

print(line_str)

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, taylorsamodell3217
Who is the first president to use social media as part of his campaign strategy
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, ladyree8721
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, small77
Font size, font style, and are all aspects of character formatting.
Answers: 2
image
Computers and Technology, 24.06.2019 11:30, nate1808
What does the https: // mean when you type in a website
Answers: 1
Do you know the correct answer?
What is wrong with this code and correct it. def swapping_stars():

line_str = ""
<...

Questions in other subjects: