Posts

Showing posts from June, 2021

PyCharm Setup

Image
 25/6 Ø   Steps to setup PyCharm:-   ·          Download the PyCharm interpreter and check for the version which supports your system.  ·          I have downloaded PyCharm 2021.1.2 x 64 publisher JetBrains s.r.o. version 211.7442.45   ·          Install the PyCharm interpreter in your system.   ·          Create the shortcut on desktop.   ·          After installing the PyCharm open it, it will take some time to launch.   ·          In case if the interpreter is not working go to the settings and select the desired option which is compatible with your system.       Ø   New Project:-   ·          Then after this try creating a new pro...

Python Advance Concepts

  15/6  ADVANCE PYTHON CONCEPTS ## Importance of Python 1) Python Environment - Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, etc.) - Win 9x/NT/2000 - Macintosh (Intel, PPC, 68K) 2) Python library - path :-    /usr/local/lib/pythonXX NOTE:- XX is version 3) Python in command prompt - $python - python% - C:> python ## How to create script file in python - In Unix: $python script.py - In Window: C: >python script.py ## Python IDE(Integrated Development Environment) - Unix −> IDLE is the very first Unix IDE for Python. - Windows −> PythonWin is the first Windows interface for Python and is an IDE with a GUI. ## Python Interpreter - Similar to compiler just like C. ## Python Error Handling - Error Handling is use to exception concept 1) System Exit  2) Standard Error 3) Arithmatic Error 4) Overflow Error 5) Zero Division Error 6) Eof Error 7) Keyboard Interrupt Error 8) Key Error 9) IO Error 10) Syntax Error 11) Value Error ## Python Expre...

Assignments

Image
PYTHON EXAMPLES:- 1) WAP of percentage using user input. per = int(input("enter your percentage ")) if per>60:     print("First Division") elif per>50 and per<60:     print("Second Division") elif per>40 and per<50:     print("Third Division") else:     print("fail") OUTPUT:- enter your percentage 49 Third Division 2) WAP to print any no. of table using user input. i = 8 while i<=80:     print(i)     i=i+8 OUTPUT:- 8 16 24 32 40 48 56 64 72 80 3) WAP of addition, multiply, subtract of any 2 nos. a = int(input("enter any no.")) b = int(input("enter any no.")) print("Addition of two no. is ", a+b) print("Subtraction of two no. is ", a-b) print("Multiplication of two no. is ", a*b) OR print("Result of two no. is ", a+b, a-b, a*b) OUTPUT:- enter any no.15 enter any no.4 Addition of two no. is  19 Subtraction of two no. is  11 Multiplication of two no. is  60 4) WA...