JavaScript
x
5
1
import webbrowser
2
number = input('Enter text ')
3
webbrowser.open("https://www.bing.com/search?q=",number)
4
exit = input('press any key to exit')
5
Basically I need to search for an input that the user says, but when the user presses enter it only searches for www.bing.com/search?q=
Advertisement
Answer
Try doing this:
JavaScript
1
2
1
webbrowser.open(f"https://www.bing.com/search?q={number}")
2
Using f-strings, it should work!