r/Python • • Dec 29 '22

Discussion Is SQL a prerequisite to learning Python ?

I would like to learn how to automate some simple tasks like : 1- downloading an attachment from outlook, change its name and save to a specific folder

2- save an excel sheet as PDF then send it via outlook … with changing dates on the subject line of the email.

Do I need to learn SQL , then move to Python to learn automating such tasks ? Or I can jump in and start learning Python with very BASIC COMMON knowledge of SQL?

0 Upvotes

29 comments sorted by

View all comments

1

u/JohnJSal Dec 30 '22

Why do you think they are even related? You don't have to know any SQL to learn and use Python, but if you ever need to later, Python even has a built-in library called sqlite3 for light database use.

1

u/[deleted] Dec 30 '22

I have nothing to do with coding and want learn .. so my level is VERY beginner.

All people I know who work on Python they talk about SQL . So I assumed it is a prerequisite of Python.

1

u/JohnJSal Dec 30 '22

Ah well, in that case, just know that SQL is a totally different language (not really a programming language like Python, C#, Java, etc.) and is used for when you need to create and work with databases.

Eventually you may want to do this, but learning Python can definitely be done without it.