Skip to main content

Familiarize Yourself With The Python Programming Language.

 

Hello Friends๐Ÿ’–


In Our Previous Blog, We have Learned the Basics of Python Programming Language & Simple Program in Python Programming Language.

In today's Blog, We Will Create a Program with the Help of Which We Will be able to Divide any Digit Number into Different Parts.

For Example, If We Go to an ATM and Enter a Number, We Can See that it Shows the Notes Available with it.

For Example Rs 4620. We Receive the note from the ATM in -

2 notes of 2000 rupees

1 note of 500 rupees

1 note of 100 rupees

1 note of 20 rupees


Number Dividing Project in Python Programming Language.


Basic A.T.M. Program

no=int(input("Enter Any Digit = "))

a=int(no/2000)

b=no%2000

c=int(b/500)

d=b%500

e=int(d/200)

f=d%200

g=int(f/100)

h=f%100

i=int(h/50)

j=h%50

k=int(j/20)

l=j%20

m=int(l/10)

n=l%10

if a>=1:

    print("2000 rs. note = ",a)

if c>=1:

    print("500 rs. note = ",c)

if e>=1:

    print("200 rs. note = ",e)

if g>=1:

    print("100 rs. note = ",g)

if i>=1:

    print("50 rs. note = ",i)

if k>=1:

    print("20 rs. note = ",k)

if m>=1:

    print("10 rs. note = ",m)


Output

Enter Any Digit = 2630

2000 rs. note =  1

500 rs. note =  1

100 rs. note =  1

20 rs. note =  1

10 rs. note =  1


If You want to Know the Basics of Python Programming Language then Click On this Link.


If You want to Know about Information Technology or It Technology, Then Click on the Link given above.

If you want to see Our Privacy Policy then You Can Click on this Link.



Hope, You Enjoy this Our Blogs on Python Language.๐Ÿ˜Š



Comments

Popular posts from this blog

Read about Python Programming Language.

       Hello Friends. In Our Previous Blog ,   We have Learned the Basics of Python Programming Language & Simple Program in  Python Programming Language. In Today's Blog We Will Create Some Basic Program in Python Programming Language. Print List Item in Assending Order Without Using Sort Function Program in Python Programming Language. Assending Order- Program #List in Assending Order list=[9,5,1,7,5,3,6,2,8,0] for i in range(0,len(list)):     for j in range(i+1,len(list)):         if list[i]>list[j]:             temp=list[i]             list[i]=list[j]             list[j]=temp print(type(list)) print("Assending Order = ",list)      Outpu t <class 'list'> Assending Order =  [0, 1, 2, 3, 5, 5, 6, 7, 8, 9] Print List Item in Dessending Order Without Using Sort Function Program in Python Programming Language...

Learn Python Programming

  Hello Friends.๐Ÿ’– In Our Previous Blog,   We have Learned the Basics of Python Programming Language & 2 Digit Swapping Program. "Now In this Blog, We will learn to make Palindrom Number Programs in Python Programming Language." Python Program To Check Number is Palindrom Or Not a Palindrom. Program no=int(input("Enter Any Number = \t")) temp=no sum=0 while no>0:     r=no%10     sum=sum*10+r     no=int(no/10) if temp==sum:     print("Palindrom Number = \t",sum) else:     print("Not a Palindrom Number = \t",sum) Output Enter Any Number =     1219 Not a Palindrom Number =     9121 Enter Any Number =    171 Palindrom Number =    171 If You want to Know the Basics of Python Programming Language then Click On this Link. Learn Basics of Python Learn Hello-World Program in Python Learn Swapping Program in Python Learn Prime Number Program in Python If You want to Know about Information Te...

Learn Different Methods In Python Programming Language

       Hello Friends. In Our Previous Blog ,   We have Learned the Basics of Python Programming Language & Different Program in  Python Programming Language. In Today's Blog We Will Create Some Basic Methods In Python Programming Language. Create Some Different Methods in  Python Programming Language. Program #Create Different Methods In Python Programming Language. def swap(a,b):     a=a+b     b=a-b     a=a-b     print("First Value = ",a)     print("Second Value = ",b) def arth():     c=a+b     print("Addition = \t",c)     c=a-b     print("Substraction = \t",c)     c=a*b     print("Multiplication = ",c)     c=a//b     print("Division = \t",c)     c=a%b     print("Reminder = \t",c) def comp():     if a>b:         print("First Value is Greater = \t",a)     eli...