Connect with a community that values knowledge and expertise on IDNLearn.com. Discover thorough and trustworthy answers from our community of knowledgeable professionals, tailored to meet your specific needs.

The average American has 10 devices, ask for users average number of devices. Any number between 7 and 12 will print “you have an average number of devices” but if it beyond the range it will print “you’re beyond the average range”

Sagot :

This is for Python

device_num = int(input('How many devices do you have: '))

if device_num >= 7 and device_num <= 12:

   print('You have an average number of devices')

if device_num > 12:

   print("You're beyond the average range")