Created by Joan L.
about 3 years ago
|
||
Define a string variable, example
Comment within a Python program, example
Variable with more than one word in it, example
Have a variable printed to the console, example
Have a string of text printed to the console, example
What will you see if you try to run the following, assuming you never defined any variables:
Print (mycode)
What will you see if you try to run the following:
Print ("Hello, world')
What sort of number would you define to find an average number?
What sort of number would you define if you were dealing with the number of guests at a party?
Which keys perform the basic math operations?
How is a variable changed in the middle of a program?
How would you print 2 to the 4th power in Python?
What is the % called, and what does it do?
What is 10 % 4 in Python?
What is it called when strings are printed together as a unit?
Concatenate two strings, example
Concatenating a number variable with text strings, example
Use of the += function, example
Using += to add a string
How can we print longer strings that might include quote marks inside them that we don't want interpreted as code?
How would a user be prompted to define a variable?