Skip to main content

User Input and Conditionals

  • Chapter
  • First Online:
Book cover Python Projects for Beginners
  • 13k Accesses

Abstract

Welcome to Week 3! This week we'll be introducing how to work with user input and making decisions within our programs. These "decisions" are known as branching statements or conditionals. If you think of your life every day, you make decisions based on specific conditions without knowing, such as when to get up in the morning, what to have for lunch, when to eat, etc. These are known as branching statements. The same applies in programming, where we need to have the computer make decisions.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    www.w3schools.com/python/python_operators.asp

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Connor P. Milliken

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Milliken, C.P. (2020). User Input and Conditionals. In: Python Projects for Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5355-7_3

Download citation

Publish with us

Policies and ethics