Issue with Pyspark get the configuration

I was trying to get the memory configuration but error is throwing out any idea

for i in spark.sparkContext.getConf().getAll():
… print(i)
… ;
File “”, line 3
;
^
SyntaxError: invalid syntax

Hi @Anjali_krishna_Gopi,

I think you miss the python indentation here. try below command-

for i in spark.sparkContext.getConf().getAll():
 print(i)