Skip to content
Advertisement

I have made a bit of code that gets your resolution in Windows, how do I make it print it in an f string?

I have made a bit of Python code that gets your resolution in Windows, how do I make it print it in an f string?

JavaScript

Its output is 1920×1080, but I need it to be like because it’s going to be among other code

JavaScript

as I am trying to remake neofetch. Unless there is a better way of getting your resolution?

Advertisement

Answer

Change screensize definition to:

JavaScript

then skip all the rest of the code and replace it with:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement