Pair numbers between 1 and 100
Write a program that prints paired numbers between 1 and 100
Write a program that prints paired numbers between 1 and 100
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
print(list(filter((lambda x: x % 2 == 0), range(1, 100))))
n = int(input("number: ")) # Get a number # Find the pair numbers between 1 to the received number for i in range(1, n): if i % 2 == 0: print(i)
for i in range(100): a = (1+i) % 2 if a == 1: pass elif a == 0: print(i+1)
class Math: def __init__(self,number): self.number=number def Way(self): for i in range(1,number): if i%2==0: print(i) number=100 obj=Math(number) print(obj.Way())
l = list(range(1, 101)) for i in l: if i % 2 == 0: print(i)
for x in range(1,51): print(x*2)
print([i for i in range(1,101) if i % 2==0 ])
Submitting answers is currently unavailable.
Write a program that translates the following words from Farsi to English and vice versa. The program must be implemented infinitely and it is possible to add new words easily words: Hello = hello goodbye = bye Kata ...
Write a program that receives the radius of the circle and prints its area and environmental area = radius * Pi (3.14) circle environment = diameter (radius * 2) * Pi (3.14)
Write a function that receives infinite parameter and returns the average of numbers. If the parameter was non -extensive, it ignores it
We want to open the cow door, we don't know the password, but we have the following information: the second -digit safing password and the fifth digit equivalent to the first number of the first digit of a larger unit ...
Write a program where the user can enter the number of one -digit number and then all the numbers that can print the construction with the entered digits for example: Input: 1 input: 2 input: End 12 21 11 22
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.