Touch module in Python Last Updated : 21 Apr, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In Python, the Touch module is used to create any file on any specified directory. The touch module is equivalent to linux command 'touch' or to the windows' cmd command ' type null > '. Installation: This module does not come built-in with Python. To install this module type the below command in the terminal. pip install touch Example 1: In this example, we will create a file inside a same directory. Python3 1== import touch touch.touch("success.java") Output: Example 2: In this example, we will create a file in a different directory. Here we create a file in "testm" folder. Python3 1== import touch touch.touch("testm / success2.java") Output: Example 3: In this example, we will create a multiple files at the same time. For this, we need to pass the file name in a list. Python3 1== import touch touch.touch(["testm / success100.java", "success10.cpp"]) Output: Comment More infoAdvertise with us Next Article Best way to learn python A ayushmankumar7 Follow Improve Article Tags : Python python-modules Practice Tags : python Similar Reads Python Fire Module Python Fire is a library to create CLI applications. It can automatically generate command line Interfaces from any object in python. It is not limited to this, it is a good tool for debugging and development purposes. With the help of Fire, you can turn existing code into CLI. In this article, we w 3 min read Sketchpy in Python Python is a versatile language that provides a lot of frameworks. This versatile nature of Python makes it emerging in every field. In the present day, Python is mostly used in the field of machine learning and data science. In this article, we will learn about a new module in Python that is Sketchp 4 min read Mouse Library in Python In this article, we will learn about the mouse library. In contrast to other Python modules, the Mouse Module enables us to fully control our mouse through a variety of features, including hooking global events, registering hotkeys, simulating mouse movement and clicks, and much more. The following 2 min read Python A-Z Quick Notes Python is a general-purpose, high-level, interpreted programming language that supports multiple programming paradigms, including procedural, object-oriented, and functional programming, and is widely used among the developersâ community. Python was mainly developed for emphasis on code readability, 15+ min read Best way to learn python Python is a versatile and beginner-friendly programming language that has become immensely popular for its readability and wide range of applications. Whether you're aiming to start a career in programming or just want to expand your skill set, learning Python is a valuable investment of your time. 11 min read turtle.ondrag() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.ondrag() This function is used to bind fun to mouse-move event on this turtl 1 min read Like