Question: Python Python Python Which of the following are operators, and which are values? 'hello' - 8 8 . 8 1 + 5 2 . Which

Python
Python
Python
Which of the following are operators, and which are values?
'hello'
-88.8
1
+
5
2. Which of the following is a variable, and which is a string?
spam
'spam'
3. Name three data types.
4. What is an expression made up of? What do all expressions do?
5. What does the variable bacon contain after the following code runs?
bacon =20
bacon +1
1
6. What should the following two expressions evaluate to?
'spam' + 'spamspam'
'spam' *3
7. Why is eggs a valid variable name while 100 is invalid?
8. What three functions can be used to get the integer, floating-point number, or string version of a value?
10. Why does this expression cause an error? How can you fix it?
'I have eaten '+99+' burritos.'
11. Write a program that asks the user to enter a number, then displays the square of this number.
Enter a number:
5
The square of 5 is 25
Python Python Python Which of the following are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!