Gmail, one of the most popular email services in the world, supports millions of users, delivering robust performance, high availability, and strong security...
Introduction. Have you ever wondered how to build a scalable system like the one you use most for interview practice? Leetcode has become a cornerstone for s...
Introduction:. In today's mobile-first world, having a website that performs seamlessly on mobile devices is no longer optional—it's imperative. Mobile optim...
Create the Lazy-Loaded Component. In the application, add a new component using the Angular CLI command, as shown below.
Basic Introduction. Nodejs is a JavaScript runtime build over Chrome's V8 JavaScript engine. Nodejs is generally used a backend tool to cater to client apis.
At times we must have come across a situation wherein we had to scrap a website and process the data in some way, like. ,
def listsum(a,b): print("Sum: ",(a+b)) listsum(10,20)
#Python Variables #Create a variable to store the base and height of a rectangle base1=8 height1=7 #Write a formula to calculate the area of a rectangle area=base1*height1 #Pring the area of the rectangle print ("The area of the rectangle is: ") print (area) #Calculate the area of the triangle with the same base and height area2=(base1*height1/2) #Print the area of the triangle with the same base and height print ("The area of the triangle is: ") print (area2) #Calculate and print the area of a circle radius=10 area3=(3.14*radius**2) print ("The area of the circle is: ") print (area3)
def listsum(a,b): print("Sum: ",(a+b)) listsum(10,20) # Example of print statements ''' print ("Hello World!") print ("Hello, Mr. Castillo") ''' print ("please enter your username") print ("please enter your password")
#Python Comments and Print Statements #Notes: two types of comments, single line and multi-line #Single-liine comments use a hashtag at the beginning. #Multi-line comments use 3 quotation marks at the beginning and 3 quotation marks at the end #Comments do not affect the code. ''' Ths is an example of a multi-line comment that uses the 3 quotation marks ''' #Print Statements ''' To write a print statement, use the following format: print ("string") print (variable) Notice printing strings uses quotation marks, bur printing variables does not. ''' #Example of print statements: ''' print ("Hello World!") print ("Hello Brandon") ''' print ("Please enter your username") print ("Please enter your password")