Posts by Eduardo Mendes • 365 points
6 posts
-
2
votes1
answer1043
viewsA: Read Data from a. csv file and pass line values to Tuple
If you need to convert a csv to a dictionary, your code is correct then I will use it as a basis for response. When you use csv.DictReader it creates a dictionary based on the keys and values of…
-
6
votes3
answers1309
viewsA: I want to change a string in 3 positions
If I get it, you want to do something similar to Cesar’s cipher. Given a string, you need to walk with each character plus 3 positions. You can use a base alphabet, in python it is already…
-
1
votes1
answer860
viewsA: Beautifulsoup - True href links
Every time you are on a page and there is a link related to it the link corresponds to its own page plus its url. You can use the lib urlparse to make a concatenation ugly and make a new request.…
-
8
votes2
answers1007
viewsA: What is Ellipsis in Python?
In the official documentation, you will find something like: The same as .... Special value used Mostly in Conjunction with Extended slicing syntax for user-defined container data types. Freely…
-
4
votes2
answers95
viewsA: What is the numerical type builtins about?
Built-in are the built-in Python libraries, you can see all the existing ones on official documentation Standard libraries can be used without installing any external modules. For example, to use…
pythonanswered Eduardo Mendes 365 -
1
votes3
answers314
viewsA: How to count the number of candidates on this page ? Python 3.6
print(len(re.findall('XXX-XX', str(soup))))