Two-wheel bike riding with urban streets traffic is a hazard to you and other vehicle drivers driving within your immediate path of travel.
Use your horn. Practice putting your thumb over the horn button on the bike. Simulate pressing the horn button before you need to really press the horn button to alert other driver of you presents. Practice; as a result, no thinking will be required when you have to press the horn button and swerve the bike out of danger zone ahead and not thinking about how to do it during an emergency maneuver.
Driving urban roads with intersection, cross streets, alleys, and people possible present at any time; therefore, know your horn button location and how to use it while controlling other function of riding a bike.