subject

Fix the code. # this program uses a for loop inside of another for loop. # you don't need to know what every line of code does to figure # out what the program is doing. # try running the program a few times with different input # to observe what the program does. # use those observations to you figure out what the program # does. # the word variable is: word = input("enter a word: ") # the length variable is: length = len(word) # the range argument is equal to: for i in range(length): # the range argument is equal to: for j in range(length): # the sum_var variable is: sum_var = i + j # if the sum_var variable's value is greater than or # equal to the value assigned to length, then sum_var # is assigned to the value of sum_var minus the # value of length. if sum_var > = length: sum_var = sum_var - length # print a character slice of the variable word, and then # end= adds a space to the end of it. print(word[sum_var], end=" ") # print() without an argument prints a blank line. print()


Fix the code. # this program uses a for loop inside of another for loop. # you don't need to know wh

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:20
The reset circuit used on the four 3-bit counters analyzed in this activity reset the counts to zero (000). it makes sense for the up-counters to start at zero (000), but the down-counters should start at seven (111). what would you need to change so that the 3-bit binary down counter with j/k flip-flops you just created would reset to seven (111)?
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
Answers: 2
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
You know the right answer?
Fix the code. # this program uses a for loop inside of another for loop. # you don't need to know wh...
Questions
question
Mathematics, 06.05.2020 02:10
question
English, 06.05.2020 02:10
question
Biology, 06.05.2020 02:10
question
Mathematics, 06.05.2020 02:10