some characters
print
functionprint
functionprint()
sends characters (strings) to the standard outputString concatenation:
In your groups, try the following operations:
"abc" * 4
+
and ,
. What is the difference?They sang AaAaAaAaAaAaAaAaAaAa
solution 1:
solution 2:
solution 3:
print
statementsprint
statementsprint
function moves the cursor to the next line after printing, unless you specify otherwise.Are You In College?
What other characters can you use for values for the end
parameter?
Write a simple program that prints the following output to the python console:
He said, "What's up?" Joe's friend didn't reply.
double quotes:
He said, "What's up?"
Joe's friend didn't reply.
single quotes:
Variable assignment does not produce any output to the console. Run the following code:
How would we print these variables?
Without variables:
With variables: