I`m trying to make a python module but my return function keeps giving me weird outputs.Can you help me?

So today I decided to try and make my own Python module but while following a tutorial, it seemed that it was sort of the opposite of what I was trying to do https://www.youtube.com/watch?v=zhpI6Yhz9_4 I`m trying to make a module that gets numbers and transform them into letters like this

Var = (int(input()))
def Function(Opener, Reader):
    Opener = open('Notepad file of letters and special characters')
    reader = Opener.readline(var)
    return reader.hex
print(Function)

What its supposed to do is get the number of

var

then read the line of

opener

that corresponds to the number of

var

but, when I press run and see Function print it comes out in numbers like this

0x0000019826559288
0x000001F64C709288
0x000001F64C709288

when I run it the print prints out a different answer each time i.e.

<function get_letter at 0x0000029EE1B19288>

<function get_letter at 0x000001F64C709288>

<function get_letter at 0x0000029EE1B19288>

and that is just from it reading line 1 which in my notepad file says its UPPERCASE A. This confused me so i came here for some answers Oh and please don't downvote this because when I need answers I cant cuz I'm on a 3 DAY break and cant post anything.



from Recent Questions - Stack Overflow https://ift.tt/32R9Fjm
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations