Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
single_digit
#!/usr/bin/env python2 # -*- coding: utf-8 -*- val = raw_input("Type your three digit number please: ") print 'The first digit is {}'.format(val[0]) print 'The second digit is {}'.format(val[1]) print 'The third digit is {}'.format(val[2]) digits_sum = sum(map(int, val)) if (digits_sum <10): print 'The sum of the three digits is', digits_sum
run
|
edit
|
history
|
help
0
Parity in Python
how far light travels in centimeters in one nanosecond
PyProperty
Test
gameboy
working with strings
魅族发货
daily score
0dd08b977895229d09b4848e467a4e10162ed345de0b245922b3505909d33ead
gvgvg