0

How do I use a Python interpreter for this code, (syntax error occurs when I try posting)

IDLE has both an interactive mode and a script mode. You must use the script mode to develop your script. Your script must use meaningful variable names and have comments that describe what is happening in your script. Comments may describe the assignment of a value to a variable, a computation and the assignment of the result to a variable, or the display of the result. Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines. Now add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line (provided below) to print a total of twenty-five lines. The last line of your program should call first nine_lines and then the clear_screen function. The  function three_lines and new_line are defined below so that you can see nested function calls. Also, to make counting “blank” lines visually easier, the print command inside new_line will print a dot at the beginning of the line: def new_lin

17th Apr 2021, 4:01 PM
Isaac Hernandez Sanchez
Isaac Hernandez Sanchez - avatar
5 Respuestas
+ 4
Please save it on Playground and show the link here.
17th Apr 2021, 4:10 PM
JaScript
JaScript - avatar
+ 4
from your post, it sounds like you have some code put together already and it is showing you a syntax error. do you mind showing your code? it might be helpful in solving your problem.
17th Apr 2021, 4:11 PM
you are smart. you are brave.
you are smart. you are brave. - avatar
18th Apr 2021, 3:20 AM
Isaac Hernandez Sanchez
Isaac Hernandez Sanchez - avatar
0
Based on a YT video the first step is put print into operation and then click f5, I still have to learn syntax because of syntax error appearance
18th Apr 2021, 3:22 AM
Isaac Hernandez Sanchez
Isaac Hernandez Sanchez - avatar
0
i made a modification to your code so that it will run. i also included some notes in their. in general, print is not allowed before ‘def’. also, since the new_line function has a print statement, you do not need to use print when calling the new_line function. i hope this is helpful. https://code.sololearn.com/c1XfKXiDa1nt/?ref=app
18th Apr 2021, 3:39 AM
you are smart. you are brave.
you are smart. you are brave. - avatar