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
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
even_odd = lambda x : x % 2 == 0 num = int(input('number: ')) print(even_odd(num))
def iseven(num): return True if num % 2 == 0 else False num = int(input('Enter num: ')) print(iseven(num))
def a(number):
return number % 2 == 0
num=int(input("adad1:"))
if a(num):
print("True")
else:
print("False")
def is_even(number): """بررسی میکند که آیا عدد زوج است یا خیر.""" return number % 2 == 0 # Example of the use of function num = int(input("لطفاً یک عدد وارد کنید: ")) if is_even(num): print(f"{num} زوج است.") else: print(f"{num} فرد است.")
try: x = int (input ("add: ")) except: print("error: lotfan add vared kon") if (x % 2) == 0 : print ("true") else: print ("false")
def is_even(number):
if number % 2 == 0:
return True
else:
return False
# Get a number
number = int(input("Enter your number :"))
print(is_even(number))
# The calculator of the pair or the individual def zoj(a): return a % 2 X = int(input("Number: ")) if zoj(X) == 0: print("True") else: print("False")
Submitting answers is currently unavailable.
Write a program that, like a dice, prints a random number between 1 and 6 in the output with each time running
Write a class called Tarikh to receive a solar date in yyyy/mm/dd format and has methods to add and reduce (day, month and year) of date. Also have a method for printing the date on the output. ...
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]
Create a table and include the following people including name, city and age.
Write a code that uploads a video with an address (test) on the page. There are video control buttons too
You must be logged in to access this section.
Login/Sign up 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.