Share your repls and programming experiences

← Back to all posts
Random Phone-Number
21sumukh

from tkinter import*
import random

def rand():
c = 642
di = random.randint(100,999)
de = random.randint(1000,9999)
print(c,"-",di,"-",de)
s = Tk()

s.configure(bg="Lightblue")

w = Label(s,text="My Random Phone Genarotor Module",fg="Red",relief="solid")
w.pack()

d = Button(s,text="Give me a random phone number",fg="blue",command=rand)
d.pack()
s.mainloop()

Voters
21sumukh
Comments
hotnewtop
SixBeeps

Did you want to put your code into the Repl you posted?