Swimming Skills Required for Ocean Scuba Diving?

Hey everyone, I’m planning to have a paid scuba diving experience on my upcoming trip to Bali or Sri Lanka. However, I’m not sure if I need to learn swimming beforehand. Is it necessary to know how to swim before trying scuba diving in the ocean?

Appreciate any advice from the scuba community!

(I know it’s a very dumb question to ask 🤦‍♂️)