N=int(input(“Enter the N number: “))
or
you can use
N=list(map(int,input(“Enter the N number: “).split()))
N=int(input("Enter the N number: ")) # or you can use N=list(map(int,input("Enter the N number: ").split())) A=[] for i in range(N): digit=int(input("Enter the numbers: ")) A.append(digit) # The above step can be completed in one line--> A=list(map(int,input("Enter the numbers : ").split(""))) # And for N---> N=len(A) occuring=0 for i in range(N): if (A[i]%2!=0): occuring+=1 print("Total number of odds in list is {}".format(occuring))
you can use:
N=list(map(int,input(“Enter the N number: “).split()))
we will get Input/output as shown below
More Codes to Fcuk
- Alphabet pyramid
- Find prime numbers between lower and upper ranges
- Prime Factor
- Find the sum of positive even numbers
- An integer interval [a,b], Find the minimum size of a set S.
- Country A and B, how many years the population of A surpasses B.
- Identify pH level
- Find the Perfect Number
- Find out if a word is a palindrome or not
- Find next Palindrome of N number.
- The writing bot Question. A scientist has created a writing bot. Read and write activity needs to be captured.
- Total Number of Odds in the list
- Partition this string into as many parts as possible.
- Leap year
- LCM of two numbers
- Greatest of three numbers
- Find the Gravitational Force Acting Between Two Objects.
- Find the missing element in geometric progression
- Find the GCD Greatest common divisor
- convert a given float number to integer