You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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
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
The text was updated successfully, but these errors were encountered: