Python Editor

Showing posts with label Challenges. Show all posts
Showing posts with label Challenges. Show all posts

Find the z value

 #Write a program to find z, when a = 10, b = 20.   z = 2(a+10)-b*(a+4) #Write a python program to find z,
 # when a = 10, b = 20.  
 # z = 2(a+10)-b*(a+4)

Name in Upper Case

 #Write a program to print the country in Upper case.   Hint - Use Strings function

country="united states"

Find Area of a Square


    #Write a program to find area of a Square

    # Area = Square * Square

Find Area of a Triangle


   #Write a program to find area of a Triangle

   # Area = 1/2 * base * height

Find area of a Rectangle

#Write a program to find area of a Rectangle

  # Area = Length * Width


Find Factorial of a number


# Write a program to find the factorial of a given number. Post your program in comments
for review.

# Example:  4! = 4*3*2*1.