You must be able to swim 200m without stopping to participate in an entry level certifying course such as the Padi Open Water course (any technique is fine and there is no timing).

However, if you just want to try diving, there is no swimming requirement : an intructor will assist you during the whole Intro Dive program.