PyWebIO – Helps to build webapps in Python. The main advantage is that no javascript nor the front end code is required. Refer to this site for more information on PyWebIO – https://www.pyweb.io/index.html Let’s see how to create our first web application using PyWebIO.
Tag Archives: latest version of python
Create First Project in Visual Studio
Open Visual studio and create a new Project. Search for Python in the templates. Select Python web project and click on “Next“. Then, click “Create“ This creates a new Python project and can be viewed under “Solution Explorer“. Let’s install a python library called Flask. Expand Python Environments, you should be able to see theContinue reading “Create First Project in Visual Studio”
Reduce
Reduce is a functionality that is introduced in Python that will take 2 elements at a time from either list or tuple and the result of that operation is again taken with next element in the list till we arrive at a solid answer and the list or tuple traversing is complete. Let’s understand thisContinue reading “Reduce”
Functions Again
ArgumentsConsider our previous function that was created that takes two parameters, num1 and num2. So, while calling the function we need to pass the same number of parameters i.e., if the function definition has two parameters, we need to pass two values, if the function definition has three parameters, we need to pass three values.Continue reading “Functions Again”
Functions
Functions are logical grouping of code statements that collectively performs a specific operation or a specific requirement. Example: If I am building a calculator, a calculator can perform various mathematical operations like addition, subtraction, division, etc. I can create one function for addition, one function for subtraction, one function for division, and so on. Let’sContinue reading “Functions”
While Loop
While Loops can be used if we need to execute the same set of statements again and again until a condition is met. For example, if we need to print a statement 5 times, we can use while loop. Let’s try to understand with an example: Example: Let’s try to print the value of variableContinue reading “While Loop”
SETs
Basic explanation of usage of sets in Python
Data Types
Datatypes are common concepts across every language. The data that is stored in a variable determines the data types. For Example: a variable that stores a text has string as a data type, similarly, variable storing number has int, float or complex as data type depending on the complexity of the number. Let’s understand fewContinue reading “Data Types”
Hello World from Python
Create Project via PyCharm Open PyCharm and click on “Click New Project“ Specify the location of the project. Click on “Project Interpreter” settings, it will automatically populate the values of the interpreter and then click “Create“. The project will be created as shown. Once the project is created, right click on the project name, selectContinue reading “Hello World from Python”
Python via Visual Studio Code
Visual studio code is free and available for all type of Operating System. First step would be to install visual studio code. Download visual studio code from the link below and click on the corresponding button based on your Operating System. https://code.visualstudio.com/download I am downloading the windows installer. An .exe file like shown below willContinue reading “Python via Visual Studio Code”