Input
Input
number in python
if n%7==0 or n%10==7:
print('Buzz number')
else:
f =0
for i in range(n):
if i*(i+1)==n:
f =1
break
if f==1:
print("pronic")
else
print("not pronic")
ak=x-10
if(x<=10):
print(fa)
else:
am=ak*20
ta=am+fa
print(ta)
reversednum = 0
while num != 0:
digit = num % 10
print(digit)
num //= 10
if(a>b):
max=a
else:
max=b
if(i%a==i%b==0):
break
print(i)
num1 = int(input("enter the number"))
a = num1
b = num2
num1 -= num2
else:
num2 -= num1
prime numbers
Method Description
endswith() Returns true if the string ends with the specified value
find() Searches the string for a specified value and returns the position of where
index() Searches the string for a specified value and returns the position of where
isalpha() Returns True if all characters in the string are in the alphabet
isascii() Returns True if all characters in the string are ascii characters
islower() Returns True if all characters in the string are lower case
isupper() Returns True if all characters in the string are upper case
partition() Returns a tuple where the string is parted into three parts
replace() Returns a string where a specified value is replaced with a specified value
rfind() Searches the string for a specified value and returns the last position of wh
rindex() Searches the string for a specified value and returns the last position of wh
rpartition() Returns a tuple where the string is parted into three parts
rsplit() Splits the string at the specified separator, and returns a list
rstrip() Returns a right trim version of the string
split() Splits the string at the specified separator, and returns a list
startswith() Returns true if the string starts with the specified value
swapcase() Swaps cases, lower case becomes upper case and vice versa
zfill() Fills the string with a specified number of 0 values at the beginning