Computer Science, asked by shreyashtardeka, 2 months ago

name = input("Enter Your name: ")
if (name == "Wushi"):
print("Welcome in")
else:
print("Access Denied")

print()

x = input("Enter a number: ")
x = int(x)
while x < 20:
if (x == 20):
break
elif (x > 20):
print("The number should be lower than 20")
x += 1
print(x)
print()

def newFunc(a, b, c):
q = a % b
y = b * c
z = c + a
print("The new function parameters answer is: " + str(q) + " " + str(y) + " " + str(z))

newFunc(5, 2, 4)
print()
newFunc(3, 6, 200)



No error But it is not Printing The number should be lower than 20​

Answers

Answered by Excaliburx25
1

Answer:

You specified the variable as (x) instead of x.

Remove the brackets and try.

Tell me if it works.

Similar questions