Answer:
 
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even number". format(num))
else:
print("{0} is Odd number". format(num))
 
        
             
        
        
        
Answer:
p(x,n)
1. if(n==0)    [if power is 0]
2.    then result =1.
3.else
4. {    result=1.
5.      for i=1 to n.
6.          {  result = result * x. }  [each time we multiply x once]
7.       return result.
8.  }
Let's count p(3,3)
3 0, so come to else part.
0, so come to else part.
i=1: result = result *3 = 3
i=2: result = result *3 = 9
i=2: result = result *3 = 27 
Explanation:
here the for loop at step 4 takes O(n) time and other steps take constant time. So overall time complexity = O(n)
 
        
             
        
        
        
Answer: “Editing” in general means fixing problems in a written document so that it has no mistakes and is easy to read
Explanation: Yeah
 
        
                    
             
        
        
        
9 is the correct answer. 4*2=8 loops are executed, moving the count from 1 to 9.