WordPress keeps automatically inserts

Try putting the 2nd line (the first code line) just after the shortcode, as in

[sourcecode language = python]a+b=c
f = 1 + 3
c = 12 + 13

(not actually code, but you see what I did.) You put a blank line after the shortcode, which was interpreted as a

Just guessing here; you might want to ask the plugin support forum.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)