Python Comments

Comments are text written in a program but not run by the computer.

In python, comments are anything that is used after #

Example

#This is a comment

				
					#The code below will output the text within the quotation signs.
print("Today is a wonderful day")

				
			

What are comments used for?

  • Comments can provide information about a code
				
					#This variable will be used to count the number of times anyone tweets the word funnymemes.
count_funnymemes = 0

				
			
  • Help others understand the code
				
					#This variable will be used to calculate the probablity of 6 on a dice
probability_of_getting_6_on_a_dice()

				
			
  • Ignore a line of code completely
				
					#value = old_code()
value = new_code()

				
			

10 Surprising Benefits of Meditation You Need to Know

Meditation is a practice that has been used for centuries to promote relaxation and inner peace. However, beyond its calming effects, research has shown that meditation can also have numerous physical and mental health benefits. From reducing anxiety and depression to improving heart health and immune function, here are 10 surprising benefits of meditation that you need to know.

Read More »

Top 5 Programming Languages for Finance Graduates

As technology continues to advance, the demand for skilled developers is constantly increasing. In this blog post, we’ll explore the top programming languages that are in high demand in 2021 and beyond, including their features, benefits, and where they’re commonly used. Whether you’re a seasoned programmer looking to stay ahead of the curve or a newcomer to the field, this guide will provide valuable insights on which programming languages to learn for a successful career in technology. From JavaScript to Python to Java, we’ll cover the key strengths of each language and help you make an informed decision on which to focus your learning efforts.

Read More »

Compound Weight Lifting Routine

If you’re short on time but still want to build muscle mass and strength, compound exercises might be the perfect solution. These exercises work multiple muscle groups simultaneously, making them efficient and effective for reaching your fitness goals. In this blog, we’ll provide a weekly workout routine featuring five popular compound exercises, as well as recommended sets and reps for each exercise. We’ll also share helpful YouTube videos for each exercise to ensure proper form and technique. Get ready to explore the benefits of compound exercises and take your fitness to the next level!

Read More »

Contracts in Commercial Law

A contract is an agreement enforceable between parties. In the commercial environment, a contract provides security to the parties involved. The contract starts with an

Read More »
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments