00:01
Okay, this one says write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits.
00:11
And then they give an example here.
00:15
Okay, so let's do that.
00:16
So let's get my number equals input.
00:21
Please give an integer.
00:25
So here's going to say all digits equals my number.
00:30
Ought split and we're going to split on an empty string.
00:34
And so if i give some integer now, oh, it doesn't like that, does it? i think that might be new in this version of python.
00:46
So i guess we have to find a different way then to do this.
00:50
Okay, so let's try a different way then.
00:52
So what we're going to do is we're going to say, 4i in my number...