Computer Science, asked by msanathjain, 9 days ago

Write python script for searching for a Favorite car in a list of car

Answers

Answered by RIDDLEYT
0

Explanation:

import requests

from bs4 import BeautifulSoup

from requests import get

import pandas as pd

import itertools

import schedule

import time

import random

from time import sleep

from datetime import datetime

import matplotlib.pyplot as plt

import seaborn as sns

sns.set()

headers = ({'User-Agent':

'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36'})

Answered by smoothiebro
0

Answer:Here is your answer! Change it as you like!

Explanation:

favouritecar = input("Enter your favourite car: ") #here we ask the user for their favourite car and assign it as a variable for later use

listofcars = ["benz", "audi", "etc"] #now we create the list of fav cars

if (favouritecar in listofcars): #here we check if the input is there in the list

   print("Your favourite car is in the list!") #then if it is in there it says this

Similar questions