a=int(input("Enter first Number"))
b=int(input("Enter second Number"))
c=int(input("Enter third Number"))
sum=a+b+c
print(sum)
Enter mark to get status of your division
m=int(input("Enter your marks"))
if(m>=90):
print("You have Passed with First Distinction")
else:
if(m>=60):
print("You have passed with Second Distinction")
else:
if(m>=35):
print("You have just passed work hard next time")
else:
print("Failed")
PageSpeed Insights analyzes the content of a web page and generates suggestions to make it faster. This service evaluates web performance using both lab and field data to provide recommendations for improvement.
By leveraging both real-user experiences and simulated environments, PageSpeed Insights offers a comprehensive view of a page's performance. This helps developers optimize their sites, ensuring faster load times and a better user experience.
For more information, visit Google's PageSpeed Insights.
import urllib.request, json
key='YOUR_API_KEY' # Use your API key here
x = "https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url="
x= x + 'https://www.plus2net.com/python/pdf-grid.php'
x= x + '&strategy=desktop' # other value is mobile
x= x + '&locale=en'
x= x + '&key='+key
response = urllib.request.urlopen(x)
data = json.loads(response.read()) # get the return Json data
score = data["lighthouseResult"]["categories"]["performance"]["score"]
print(score)
FCP (First Contentful Paint): The time it takes for the first piece of content to appear on the screen.
LCP (Largest Contentful Paint): Measures the loading performance of the largest content element visible in the viewport.
CLS (Cumulative Layout Shift): Evaluates the visual stability by measuring unexpected layout shifts during the page load.
INP (Interaction to Next Paint): Measures the responsiveness by evaluating the time from user interaction to the next frame painted.