Check out example codes for "search google or type a url". It will help you in understanding the concepts better.

Code Example 1

Bro, why are u searching this...

while True:
	print("GET BACK TO CODING")

Learn ReactJs, React Native from akashmittal.com