anonymous
  • anonymous
How do you type multiple commands? Ex: string1 = str(input("Type in a string: "))print ("The string is", len string1), "characters long.") SyntaxError: invalid syntax
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
each statement goes on a line by itself.
anonymous
  • anonymous
How do you create a new line without pressing enter?
anonymous
  • anonymous
You cannot. Why don't you want to hit enter?

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
Your example wouldn't be possible as one statement. You must capture string1 as input before counting its length - two statements therefore two lines. There is a new line "\n" character but that is for output, not for coding.
anonymous
  • anonymous
I think what is happening is that you are typing in the interpreter(shell) because in the interpreter when u hit enter it runs your command. To make a program you have to make a textfile. To do this go up to file, new window or press "ctrl+n". This is where you type your programs then go to the run tab at the top or press F5 to run it

Looking for something else?

Not the answer you are looking for? Search for more explanations.