3.3 Code Practice: Question 1 Edhesive ,not 3.2 answer
Answers
Answered by
194
Answer:
Question 1)
x = int(input("Enter today's day numerically:"))
if (x == 15 or x == 30):
print("It's payday!")
if (x != 15 and x != 30):
print("Sorry, not a payday.")
Question 2)
r = int(input("Enter the red: "))
g = int(input("Enter the green: "))
b = int(input("Enter the blue: "))
if (r > 255 or r < 0):
print("Red number is not correct.")
if (g > 255 or g < 0):
print("Green number is not correct.")
if (b > 255 or b < 0):
print("Blue number is not correct.")
Explanation:
MArk as brainliest awnser pls
Answered by
0
Answer :
def reverse(word):
x = ''
for i in range(len(word)):
x += word[len(word)-1-i]
return x
word = input('give me a word:\n')
x = reverse(word)
if x == word:
print('This is a Palindrome')
else:
print('This is NOT a Palindrome')
#SPJ3
Similar questions