Computer Science, asked by shahissain, 10 months ago

write a Python coding to accept a number and check it is divisible by 13​

Answers

Answered by BrainlyFIRE
1

☢️hi mate.....

def multiple(m, n):

return True if m % 13== 0 else False

print(multiple(20))

Answered by muhammedifty
0

w3resource

menu

Custom Search

share

Python Exercises

Python Exercise: Calculate the number of digits and letters in a string

Last update on February 08 2019 06:16:48 (UTC/GMT +8 hours)

Python Conditional: Exercise-14 with Solution

Write a Python program that accepts a string and calculate the number of digits and letters.

Pictorial Presentation:

Python Exercise: Calculate the number of digits and letters in a string

Sample Solution:

Python Code:

s = input("Input a string")

d=l=0

for c in s:

if c.isdigit():

d=d+1

elif c.isalpha():

l=l+1

else:

pass

print("Letters", l)

print("Digits", d)

Similar questions