Please use the below script to get information of RAM
import os
print os.popen('systeminfo | findstr /c:"Total Physical Memory" /c:"Available Physical Memory"').read()
Sample Output:
Please use the below script to get information of RAM
import os
print os.popen('systeminfo | findstr /c:"Total Physical Memory" /c:"Available Physical Memory"').read()
Sample Output: