The examination of the couple of the number
Write a function that receives a number and specifies or not to be paired by returning TRUE or FALSE
Write a function that receives a number and specifies or not to be paired by returning TRUE or FALSE
def num(n): | |
if n % 2 == 0: | |
return True | |
else: | |
return False | |
print(num(n=int(input("enter your number:")))) |
def zog_fard(number): | |
if number % 2 == 0: | |
print("True") | |
elif number % 1 == 0: | |
print("False") | |
else: | |
print("this value not found") | |
number = int(input("number: ")) | |
zog_fard(number) |
class Even: | |
def __init__(self,number): | |
self.number=number | |
def Solve(self): | |
if self.number%2==0: | |
return True | |
else: | |
return False | |
number=int(input("enter your number:")) | |
obj=Even(number) | |
print(obj.Solve()) |
def num(adad): | |
if adad % 2 ==0: | |
return True | |
else: | |
return False | |
number=input("please inter number here:") | |
print(num(number)) |
def zoj(): | |
number_1 = int(input("please enter a number: ")) | |
if number_1 % 2 == 0: | |
print("True") | |
else: | |
print("False") | |
zoj() |
def zoj(adad): | |
if adad%2 == 0: | |
return True | |
else: | |
return False | |
zoj() |
a = int(input(" namber:") | |
if a % 2==0 : | |
print(trua) | |
else: | |
print (false) |
Submitting answers is currently unavailable.
Write a function that receives a string and returns the number of letters: To solve this question, you should not use ready-made functions for example: get_len ('code-bezan.ir') # 13
Write a program that receives a store product listing including name and product price and will continue until the amount of empty value for the product name is entered; Then the product name is displayed as a list ...
Using HTML and CSS, insert an image with the following features on the page.
Write a function that receives a list of numbers and generates 2 lists for pair and individual numbers and prints in the output example ([1,2,3,4]) Output: [1,3] [2,4] [2,4]
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.