Answer:
Program :
number=int(input("Enter the number: "))#take the input from the user.
number1=number
count=0#take a variable for count.
while(number>0):#loop which check every number to be odd or not.
value=number%10 #it is used to take the every number from integer value.
number=int(number/10)#it is used to cut the number which is in the use.
if(value%2!=0):#It is used to check the number to be odd.
count=count+1#It is used to increase the value.
print("The number of Odd Digits in "+str(number1)+" is "+str(count))#It is used to print the count value of odd digit.
Output:
- If the user inputs is '1234567890', it will prints "5".
- If the user inputs is "8546587", it will prints "3".
Explanation:
- The above program is in python language, which takes the integer value from the user.
- Then The number will be distributed into many individual units with the help of a while loop.
- The while loop runs when the number is greater than 0.
- There is a two operation, one is used to take the number by the help of modulo operator because it gives the remainder.
- The second operation is used to divide the number to let the number 0.
1. be able to see function keys and input and output ports on the back
2. never lose your tv in the dark
Pattern recognition is used for similarities between concepts or problems in an algorithm.
What is meant by pattern recognition?
Pattern recognition is a data analysis method that uses machine learning algorithms to automatically recognize patterns and regularities in data. This data can be anything from text and images to sounds or other definable qualities. Pattern recognition systems can recognize familiar patterns quickly and accurately.
An example of pattern recognition is classification, which attempts to assign each input value to one of a given set of classes (for example, determine whether a given email is "spam" or "non-spam").
Therefore, Pattern recognition is used.
To know more about Pattern recognition from the given link
brainly.com/question/28427592
#SPJ1
Answer:
A. for an if-else statement in python, if the condition is false, The else statement is executed.
B. if the condition of the if-statement is true, the indented block of code is executed.
Explanation:
The if-statement is a conditional statement in programming for decision making. It is also known as branching as it makes decisions based on two paths. It comes with another keyword called 'else'.
The If-else statement makes a decision based on the output of a condition which is defined in the if-statement. If the condition is met, the code block just after the if-statement is executed, but the else-statement block is executed if otherwise.