---
title: "Module"  
description: "Module"  
author: "Anonymous User"  
published: 2018-07-04  
updated: 2018-07-06  
canonical: https://www.mindstick.com/forum/34581/module  
category: "python"  
tags: ["python"]  
reading_time: 1 minute  

---

# Module

What is the [Python](https://www.mindstick.com/articles/75378/simple-yet-useful-tips-when-using-python) [module](https://www.mindstick.com/blog/11796/prestashop-one-page-checkout-module-make-checkout-faster) ? How to use this ?

## Replies

### Reply by Prakash nidhi Verma

Consider a module to be the same as a code library. A file containing a set of functions you want to include in your application.

Create a Module :

```
def greeting(mindstick):   print("Hello, " + mindstick)
```

import mymodule :

```
mymodule.greeting("Mindstick") 
```

Variables in Module :

The module having functions as already described,but also variables of all types(arrays, dictionaries, objects etc):

```
person1 = {   "name": "Prakash",
  "age": 19,
  "country": "India"
}
```

Built-in Modules :

built-in modules in Python,which you can import whenever.

```
import platform x = platform.system()
print(x)
```

Import From Module :

You can choose to import only parts from a module,by using the from keyword. one function and one dictionary:

```
def greeting(mindstick):   print("Hello, " + mindstick)
person1 = {
  "name": "praksh",
  "age": 19,
  "country": "India"
}
```


---

Original Source: https://www.mindstick.com/forum/34581/module

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
