Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Books My library > 1 1 4 0 : Introduction to Scripting home > 3 . 2 : If - else statement zyBooks catalog Help

Books My library >1140: Introduction to Scripting home >
3.2: If-else statement
zyBooks catalog
Help/FAQ
She
RUn
View your last submission vv
Feedbacl
CHALLENGE
ACTIVITY
3.2.3: Basic if-else.
user_tickets is read from input. If user_tickets is less than 5, then assign a variable named num_tickets with 1. Otherwise, assign num_tickets with user_tickets.
Ex: If the input is 3, then the output is:
Value of num_tickets: 1
Learn how our autograder works
541512.3416572 qx 3zqy7
user_tickets = int input ()
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

LO1 Explain how the workforce is changing in unpredicted ways.

Answered: 1 week ago

Question

LO6 List the components of job descriptions.

Answered: 1 week ago