I have not understood why they write round(x[,n])
in syntax, but in codes they write round(10.6987,12)
without square brackets before comma i.e, round(10.6987[,12])
In Python, why round(x[,n]) is written instead of round(x,n)?
285 Views Asked by user2713461 At
2
The square brackets aren't intended to by typed into your code. They just indicate that
n
is an optional parameter.This style is recommended in the Documenting Python guide: