Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Welcome to Code Forum!
Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.
Hi, how can i change this code to work for two-digit numbers or three-digit number?
For now only work for single digit numbers, tried to change algorthm but didnt work.
def to_number(digits):
result=digits[0]
for el in digits[1:]:
result=result*10
result=result + el...
is there any way to figure out if an answer contains a part of pi?
let fakePi = 3
fakePi.isPi = true
let fakePi = 3.1
fakePi.isPi = true
let fakePi = 3.14
fakePi.isPi = true
let fakePi = 3.142
fakePi.isPi = false
let fakePi = 3.141
fakePi.isPi = true