computer sience…..

computer sience…..

  1. What is an if statement useful for? 1 point
  2. Write an if statement to check to see if the variable age is greater than 18. 1 point
  3. What is the difference between the < and <= relational operators? 1 point
  4. What is the meaning when you use the > operator to compare strings? 1 point
  5. How is an elif statement useful? Give an example aside from computing grades where this statement can be useful. 1 points
  6. What is the bool datatype and what does it represent? 1 point

7- 
Write a python  program that asks the user for an integer, and displays whether that integer is even or odd. You will want to use the % operator to test for even or odd. 2 points

8- Write a program that takes inputs three strings from the user, and displays which string is first alphabetically. You will need to use if statements and the and operator. 2 points

answers from this book Chapter3

http://www.pearsonhighered.com/educator/product/Starting-Out-with-Python-3E/9780133582734.page

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper