Presentation is loading. Please wait.

Presentation is loading. Please wait.

What is x? x = 12 % 5 5 12 1 2 3 4.

Similar presentations


Presentation on theme: "What is x? x = 12 % 5 5 12 1 2 3 4."— Presentation transcript:

1 What is x? x = 12 % 5 5 12 1 2 3 4

2 What does Python print if you type in when you run the program? 12
Here’s a program: hello = 12 response = input(‘Type something in: ‘) print response What does Python print if you type in 8 when you run the program? 12 response hello

3 What does Python print if you type in when you run the program? ‘6+5’
Here’s a program: hello = 12 response = input(‘Type something in: ‘) print response What does Python print if you type in 6+5 when you run the program? ‘6+5’ 11 hello response

4 What does Python print if you type in when you run the program? 12
Here’s a program: hello = 12 response = input(‘Type something in: ‘) print response What does Python print if you type in hello when you run the program? 12 ‘hello’ response

5 When should you use input instead of raw_input?
When raw_input doesn’t get me the answer I want Never When Dave’s not looking When I want strange bugs to happen A and C B, or possibly D None of the above


Download ppt "What is x? x = 12 % 5 5 12 1 2 3 4."

Similar presentations


Ads by Google