I'm annoying, I know, I just really suck at this

Hi. Me again. I know I'm probably really annoying you all with my constant questions, but I just really suck at this. I've been working on this code for about 2 hours. Mind helping me out?

For this code, the computer gets an input that is a float and then has to give back the number that is directly after the decimal. Now, what I'm trying to do is make the float given into a list, and then print the number on the list that comes after the point, but I have no idea whatsoever how to do that. Is there a module of some type that would help me?

This is how my code looks like:
a = float(input())
num_list = list(str(a))
str_num = len(num_list)

Help me please?

You are viewing a single comment. View All
pyelias (1471)

There is a simpler way to approach this than what you are doing. Instead of finding the part after the decimal, find the part before the decimal (with int) and then subtract it from the original number.