Using an arrow function find the first result that has a mark of below 50 in js code example

Example 1: write a program to input a number and display its double and half values using shift operator in python

# Write a program to input a number and display its Double and Half values using SHIFT operator

print("Hi \nThis is a basic calculator \nwhich doubles or divides into half the value entered in it")
a = int(input("pls enter your number:\n"))
b = a << 1
c = a >> 1
print("number:", a, "\ndouble:", b, "\nhalf:", c)

Example 2: Try out the enumerate function for yourself in this quick exercise. Complete the skip_elements function to return every other element from the list, this time using the enumerate function to check if an element is on an even position or an odd position.

def altElement(a):
    return a[::2]