SyntaxFix
Write A Post
Hire A Developer
Questions
The inbuilt function abs() would do the trick.
positivenum = abs(negativenum)