Pergunta
1. Use the brain .screen.next row()command, along with a for loop to write "Hello" on your screen 10 times . Copy and paste your finished code here. (TE XT ONLY)
Solução
Verification of experts
4.7172 Voting
GustavoProfissional · Tutor por 6 anos
Responder
Here is an example code that uses the `brain.screen.next_row()` command along with a for loop to write "Hello" on the screen 10 times:<br />```<br />for i in range(10):<br /> brain.screen.next_row()<br /> brain.screen.print("Hello")<br />```<br />This code will create a loop that iterates 10 times, and each time it will move the cursor to the next row using the `next_row()` command and then print the string "Hello" on the screen.
Clique para avaliar: