Python program to create a user-defined module that will ask your college name and display the name of the college.

College.py:

def col():

    name = input("Enter your college name: ")

    print("Your college name is:", name)

 

Code:

import College

College.col()

 

Output:

Comments

Popular posts from this blog

State use of pep and pip