Question
using python
1. A NYC tour bus company that owns one coach bus sells city-tour tickets that cost $24 per child (under 11) and $34 per adul
0 0
Add a comment Improve this question Transcribed image text
Answer #1

question 2 :

(a)

x_values = []

y_values = []

for x in range(0,51):

    for y in range(0,51):

        if ((86 * x) - (25 * y)) == 16 :

            x_values.append(x)

            y_values.append(y)

print('x : ',x_values)

print('y : ',y_values)

(b)

n=int(input("Enter an integer:"))

print("The divisors of the number are:")

for i in range(1,n+1):

    if(n%i==0) and (i%2==0):

        print(i)

Add a comment
Know the answer?
Add Answer to:
using python 1. A NYC tour bus company that owns one coach bus sells city-tour tickets...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT