Practical No. 2: Write simple Python program to display message on screen ((MSBTE Pratical Question))

1. List different modes of Programming in Python?



Ans: Their are basically two types of mode
  • Script Mode
  • Interactive Mode

2. Describe procedure to execute program using Interactive Mode?

Ans: To start interactive mode navigate to cmd and just type in python2 or python3



3. State the steps involved in executing the program using Script Mode?

Ans: To execute the file ins cript mode type in python in start execute the python program then press ctrl+n -> write your python code save the code and then press F5.



4. State the procedure to make file executable?


Step1: Add Python to windows Path
Step2: Open CMD
Step3: Install the Pyinstaller Package
  • pip install pyinstaller
Step4: Save Your script file
Step5: To create Execute copy the file path without the filename 
Step6: Run pyinstaller --exefile python simptome.py
step7: Navigate to dist folder in which ther is .exe file



Comments

Popular posts from this blog

State use of pep and pip