Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Python Practical Slip 23 Answers

    Write a Python program

Slip 23 A) Write a Python GUI program to create a label and change the label font style (font name, bold, size) using tkinter module.

Answer :


import tkinter as tk parent = tk.Tk()

parent.title("Welcome to India")

my_label = tk.Label(parent, text="Hello", font=("Arial Bold", 90)) my_label.grid(column=0, row=0)

parent.mainloop()


Output :

 

Slip 23 B) Create a class circles having members radius. Use operator overloading to add the radius of two circle objects. Also display the area of circle.

Answer :

Output :


Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Python Practical Slip 23 Answers Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Python Practical Slip 23 Answers Reviewed by technical_saurabh on December 31, 2021 Rating: 5

No comments:

Powered by Blogger.