Jio - Money to PhoneNumber on Python

Jio - Money to PhoneNumber 



It is a imagine not real. 
Story:
One day JIO owner (or anyone else) announced a price amount 1 crore to someone. But, he really confused to give to who (rather than employee or known person). So he decided to pick random phone number (Indian Number only) and give that amount rupees to the number.
He asks computer to pick random number...

-----

Come out of the story...
We decide to code for that 


Let's code...


CODE:

import random
def phoneNumber():
    ph = ''
    for i in range(1):
        n = random.randint(6,9)
        ph += str(n)
        for j in range(9):
             c = random.randint(0,9)
             ph += str(c)
    print(ph)


phoneNumber()

-----

Note:  If you lucky, your number will be display.... ("You will get this amount.... :)" )

------

By
PyKAR

Comments

Popular posts from this blog

Hardy - Ramanujan Number (Magic Number) Program in Python

FLAMES CODE ON PYTHON

Count Swap for Sorting in Python