Skip to content

Tag: python-3.x

Draw a simple box around a string

I’m trying to learn python, and one of the “tasks” asks me to draw a box around a string. For some reason, I can’t come to a solution. This is supposed to be super basic so we can’t use functions and loops etc. Here’s the task: (I’m stuck on question 2) Load a string …

Not able to print simple fibonacci series in python?

Trying to print simple fibonacci series in Komodo using Python. but not getting any o/p Can someone explain me the mistake. I’m starting to learn Python. please let me know from where to start. Any link to full python course. Answer you didn’t call your function. Just call it and also remove param…

string.replace() outputs me an error when defining it

Im getting data from an API. Then i want to replace the value in the string from “True” to “Online”. The error i get from replace() is AttributeError: ‘bool’ object has no attribute ‘replace’ I want to implement a Teamspeak Online Checker by getting the value if…

Read a TSV file from a remote server

I have this function which returns the path to the file I need to read Later on, I am trying to open the file db_file holds one of the paths above. When I execute the script I get this error: I have checked the files names and the paths they all exist and in the right location. I have tried