Yes, you can learn Python after the 12th. However, in most cases, a mathematics background is asked for as coding requires mathematics building knowledge without which the coders would be left with no knowledge of essential tools they need to succeed. Besides, there are no otherwise eligibility criteria for enrolling in a certificate or diploma Python courses.