Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python exercises
Post: RE: Python exercises

@perfringo, @snippsat - thanks guys a lot!
InputOutput007 News and Discussions 3 2,435 Jan-29-2021, 12:07 PM
    Thread: Python exercises
Post: Python exercises

Hi, What kind of webpage* would you recommend me for exercises in Python? I am not asking about the tutorials itselves, but about a solid webpage which has exercises from the intermediate to the adva...
InputOutput007 News and Discussions 3 2,435 Jan-28-2021, 06:24 PM
    Thread: .maketrans() - a piece of code which needs some explanation
Post: RE: .maketrans() - a piece of code which needs som...

(Jan-28-2021, 04:47 PM)buran Wrote: (Jan-28-2021, 04:44 PM)InputOutput007 Wrote: Why do we have to have 3 strings here? If we wanted to map punctuation chars into None, do we have to have 3 string...
InputOutput007 General Coding Help 5 2,955 Jan-28-2021, 04:50 PM
    Thread: .maketrans() - a piece of code which needs some explanation
Post: RE: .maketrans() - a piece of code which needs som...

(Jan-28-2021, 04:43 PM)buran Wrote: (Jan-28-2021, 04:31 PM)InputOutput007 Wrote: So, here we have 2 strings, but with different length - how does it work? I can't see it. well, you have 3 strings:...
InputOutput007 General Coding Help 5 2,955 Jan-28-2021, 04:44 PM
    Thread: .maketrans() - a piece of code which needs some explanation
Post: .maketrans() - a piece of code which needs some ex...

Hi, I want to understand the following piece of code. I hope you can help me with it. import string as str punc = str.punctuation string = 'ramdomforthismoment' table_trans = string.maketrans('', ...
InputOutput007 General Coding Help 5 2,955 Jan-28-2021, 04:31 PM
    Thread: .remove() from a list - request for explanation
Post: RE: .remove() from a list - request for explanatio...

@snippsat, @bowlofred - thank you for explanation
InputOutput007 General Coding Help 3 2,214 Jan-28-2021, 04:21 PM
    Thread: .remove() from a list - request for explanation
Post: .remove() from a list - request for explanation

Hi guys, I am learning python and I came across a weird thing which is hard for me to find the cause of it. Here is my code: l = [1, 2, 3, 2, 2, 2, 1] for el in l: print("element: ", el) if el ==...
InputOutput007 General Coding Help 3 2,214 Jan-21-2021, 03:52 PM
    Thread: Adding to the dictionary inside the for-loop - weird behaviour
Post: RE: Adding to the dictionary inside the for-loop -...

Hey guys! Thank you all for the explanation and spending your time helping me. Thank you: @BashBedlam, @Larz60+, @Serafim, @buran :)
InputOutput007 General Coding Help 5 2,701 Jan-21-2021, 02:21 PM
    Thread: Adding to the dictionary inside the for-loop - weird behaviour
Post: Adding to the dictionary inside the for-loop - wei...

I want to write a program in which as an input I take a list consisted of words which can contain punctuation marks. I built a dictionary where keys are elements of a given list and values are empty l...
InputOutput007 General Coding Help 5 2,701 Jan-20-2021, 08:59 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020