Please code Python We’ll call a number “glorious” if it is not divisible by any number from 10 to 50, inclusive. Write a function glorious(val) that takes as input a single integer and returns the boolean True if the input is glorious, and False if it is not.

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter6: Security And Privacy
Section: Chapter Questions
Problem 18QY
icon
Related questions
Question

Please code Python

We’ll call a number “glorious” if it is not divisible by any number from 10 to 50, inclusive. Write a function glorious(val) that takes as input a single integer and returns the boolean True if the input is glorious, and False if it is not.

Examples:
>>> glorious(9)
True
>>> glorious (50)
False
>>> glorious (1009)
True
>>> glorious(1541)
False
Transcribed Image Text:Examples: >>> glorious(9) True >>> glorious (50) False >>> glorious (1009) True >>> glorious(1541) False
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage