Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# Function for addition def add(a, b): return a + b # Function for subtraction def subtract(a, b): return a - b # Input from user num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: ")) # Perform operations print("Addition:", add(num1, num2)) print("Subtraction:", subtract(num1, num2)) #129

Open
Sky719226 opened this issue Dec 23, 2024 · 0 comments

Comments

@Sky719226
Copy link

import requests
from bs4 import BeautifulSoup

url = "https://example.com"
response = requests.get(url)

soup = BeautifulSoup(response.text, 'html.parser')
print(soup.title.string) # Print the title of the webpage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant