Answer:
user_string = input("Input a string : ")
output = user_string.isnumeric()
if output == True:
print("yes")
else:
print("no")
Explanation:
- First of all check whether user input have all numeric value or not
.
- Display yes if string contain all numeric values
.
- Display no if string contain at least one non - integer character
.
Banded rows indicate that there are different formatting for odd and even rows.
Answer:
def print_popcorn_time(bag_ounces):
if bag_ounces<3:
print("Too Small")
elif bag_ounces>10:
print("Too Large")
else:
total = 6*bag_ounces
print('{} seconds'.format(total))
Explanation:
Using Python programming language
The function is defined to accept a single parameter
Using a combination of if/elif/else statements, the approprite message is displayed when the function is called
Answer:
run the code to see where the error is
Explanation:
An application used to access and view websites