How to Write and Run Python program in Termux

Now follow the following steps :- 1) Open the Termux and type 'nano' to open nano. $ nano 2) Now type Python program which you want to run.



Anonymous School 🏫

            (Minds of Hacker)

----------------------

        
        Hello friends Welcome to Anonymous School 🏫. This is 29th part of Ethical Hacking With Android Course . In this post i show you can we write and run Python programs in Termux. Then please read the full post.








How to Write and Run Python programs in Termux :-


Requirements :-

1. Termux Apk  ( Click Here to Download  ).

             OR

2. Kali Linux

            OR

3. Kali Nethunter file  ( Click Here to Download ).

4. Nano  ( Click Here to Download )


            So , Firstly we need to write a Python program and then we need run program file. Then for writing program we need one tool, which is Nano.  I already posted a 1 post on nano , where i explained how to install it & how to use it. Then please Click Here and go to this post to see how to install & use nano .

            Then for compiling and running program we need a one more tool ,that we see below. The name of this tool is Python .

            Now follow the following steps :-

1) Open the Termux and type 'nano' to open nano.

$ nano



2) Now type Python program which you want to run.


3) After typing the Python program , type the CTRL button and x to save this file.


4) Then it asks that you want to save it then type Y .

5) Then type the name for your file and give extension .py , then press enter. After that your file will be saved.

6) Now we need to run this program file , then for that we need to install Python tool for that type following command.

$ apt install Python

7) Now to compile your program file type python then space then type name of program file.

$ python programfile.py 



10) After this command you can see output of your program .




             So Friends, in this post i showed you how we can write or run Python programs in Termux. Then please follow to this blog & subscribe to our YouTube channel . If you want to see it practically then visit to our YouTube channel .





Note 📝 :-
1) While copying the commands from this blog don't copy $ this symbol, because this symbol is only for mentioning that this is the command, then don't copy this symbol , else you get a error.

 ****************Don't Make Learning Hard*****************

  Follow Us  



NextGen Digital... Welcome to WhatsApp chat
Howdy! How can we help you today?
Type here...