Skip to content

Instantly share code, notes, and snippets.

View Ayy-Pee's full-sized avatar

ArjunP Ayy-Pee

View GitHub Profile
@Ayy-Pee
Ayy-Pee / basics.py
Last active January 4, 2023 09:16
Python functions that you can add to your code for basic calculations.
#Function to find if the number is Even or Odd
def evenodd(a):
if(a%2==0):
return(a,"is Even")
else:
return(a,"is Odd")
#Fuction to find if the number is Prime or Not
def prime(a):
x=True