read file as list of tuples python : I want to read a file using python
the result must be like(a list of tuples):
>        myList=[(1, 'assignment_1', 85,100', '0.05'),
>               ('2', 'assignment_2', '80', '100', '0.05'),
>               ('3', 'assignment_3', '95', '100', '0.05')]

the file contains:

>        1 assignment_1 85 100 0.05
>       2 assignment_2 80 100 0.05
>       3 assignment_3 95 100 0.05

my code :
>          inputfile=open(filename,"r")
>         myList=[]
>         for line in inputfile.readlines():
>             tuples=line.split()
>         myList.append(tuples)
>         print(myList)
>         fileinput.close()

the result 
>        [['1', 'assignment_1', '85', '100', '0.05'],
>         ['2', 'assignment_2', '80', '100', '0.05'], 
>         ['3', 'assignment_3', '95', '100', '0.05']]

how I convert the items into each type(int, float), I got alist of lists not a list of tuples
               
