# Monthly Archives: January 2023

## Python Different Counts in String

Python Different Counts in String – Python program to count uppercase letters, lower case letters, vowels, consonants and spaces in the given string.   #Python program to count upper case letters, lower case letters #vowels, consonants and spaces in a string uppercase=0 lowercase=0 vowels=0 consonants=0 spaces=0 string=input(“Enter a String: “) for ch in string: if… Read More »

63 total views,  1 views today

## Python Function Circle Area

Python Function Circle Area – Write a Python program to input radius of a circle. Calculate the area of the circle with the given radius. Source code for Python Program to find Area of Circle # Python Function Area of Circle # Define the function to find area of circle def area_of_circle(radius): if radius <… Read More »

60 total views

## Python Program Check Positive Number

Python Program Check Positive Number – Write a Python program to input a number and check whether the given number is positive, negative or zero. Use Python if-elif-else construct. Python Program Check Positive, Negative or Zero Number # Python program to check a number # for positive, negative or zero num = int(input(‘Enter a number:… Read More »

42 total views,  1 views today

## Python Square Root Program

Python Square Root Program – Write a Python Program To find Square root of a number. Three Python programs to find square root of a number using Python. Code of Python Square Root Programs Program 1:Use Exponentiation Operator Exponentiation Operator ** in Python is used to raise the first operand/number to power of second number.… Read More »

73 total views