Skip to main content

Comments in python?

If you know a little bit of programming language then You are use to with term "Comments" in programming..


In Python comments are separated by "#" hash symbol.

But when you want to use comments for multi lines this can be declared with ( ''' ) three Quotation marks.



Follow for further updates..

Dm me on Instagram and tell me how you guys want me to continue further.

Comments

Popular posts from this blog

How to create a 3d Rubic's cube in python using tkinter

 In this blog post, I will show you how to create a 3d rubic's cube in python using tkinter, a standard GUI library for python. Tkinter provides various widgets and methods to create graphical user interfaces. A 3d rubic's cube is a popular puzzle game that consists of a cube with six faces, each divided into nine smaller squares of different colors. The goal is to rotate the faces of the cube until each face has only one color. To create a 3d rubic's cube in python using tkinter, we will need to use the following steps: 1. Import the tkinter module and create a root window. 2. Create a canvas widget to draw the cube on. 3. Define the coordinates and colors of the vertices and faces of the cube. 4. Define a function to draw the cube on the canvas using polygons. 5. Define a function to rotate the cube along the x, y or z axis using matrix multiplication. 6. Define a function to handle keyboard events and call the rotation function accordingly. 7. Bind the keyboard events to...

Creating a web app In Python

Python is a versatile and powerful programming language that can be used for various applications, such as data analysis, machine learning, web development and more. In this blog post, we will focus on how to create a web app in Python using some popular frameworks and tools. A web app is a software application that runs on a web server and can be accessed by users through a web browser. A web app typically consists of two main components: the front-end and the back-end. The front-end is the part of the app that the user interacts with, such as the user interface, the layout, the graphics and the functionality. The back-end is the part of the app that handles the logic, the data processing, the database and the communication with other services. To create a web app in Python, we need to choose a framework that provides us with the tools and libraries to build both the front-end and the back-end of our app. There are many frameworks available for Python web development, such as Django, ...