Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Int.From_Bytes Method - Conversion of Non-Escaped Bytes Objects
Post: RE: Int.From_Bytes Method - Conversion of Non-Esca...
|
new_coder_231013 |
General Coding Help |
2 |
1,772 |
Apr-06-2024, 04:24 PM |
|
|
Thread: Int.From_Bytes Method - Conversion of Non-Escaped Bytes Objects
Post: Int.From_Bytes Method - Conversion of Non-Escaped ...
Hello,
Sorry in advance for the likely basic nature of this question. I'm wondering how the "int.from_bytes" method returns the output that it does when it's converting input other than the escaped p... |
|
new_coder_231013 |
General Coding Help |
2 |
1,772 |
Jan-17-2024, 08:54 PM |
|
|
Thread: Zfill Method Parameter Confusion
Post: RE: Zfill Method Parameter Confusion
|
new_coder_231013 |
General Coding Help |
3 |
1,827 |
Dec-05-2022, 05:52 PM |
|
|
Thread: Zfill Method Parameter Confusion
Post: Zfill Method Parameter Confusion
Hello,
I was going through a tutorial on Unicode and character encodings in Python and I came across a function that the author presents as a way to convert Unicode strings that look like "U+10346" i... |
|
new_coder_231013 |
General Coding Help |
3 |
1,827 |
Nov-25-2022, 06:19 PM |
|
|
Thread: Soup('A')
Post: RE: Soup('A')
(Aug-31-2022, 12:23 PM)Larz60+ Wrote: I would have used: tags=soup.find_all('a')
Thanks Larz60+, that definitely makes more sense to me (and produces the same result). |
|
new_coder_231013 |
Web Scraping & Web Development |
5 |
7,101 |
Sep-12-2022, 12:02 PM |
|
|
Thread: Soup('A')
Post: Soup('A')
Hello,
I've been going through an introductory Python book that includes some material on web scraping using BeautifulSoup. My question is about the final three lines in the below code:
import urlli... |
|
new_coder_231013 |
Web Scraping & Web Development |
5 |
7,101 |
Aug-31-2022, 12:09 PM |
|
|
Thread: For Word, Count in List (Counts.Items())
Post: RE: For Word, Count in List (Counts.Items())
Thanks snippsat. I looked over everything you wrote and looked a few things up and everything is clear now. Thanks again. |
|
new_coder_231013 |
General Coding Help |
6 |
6,023 |
Jul-21-2022, 02:51 PM |
|
|
Thread: For Word, Count in List (Counts.Items())
Post: RE: For Word, Count in List (Counts.Items())
Thanks snippsat! I've looked over what you wrote and it actually generated some more questions.
1 ) I’m curious why the code from the introductory Python book ignores punctuation. Does it have someth... |
|
new_coder_231013 |
General Coding Help |
6 |
6,023 |
Jul-20-2022, 11:17 AM |
|
|
Thread: For Word, Count in List (Counts.Items())
Post: RE: For Word, Count in List (Counts.Items())
Thanks ndc85430. I was able to visualize the code execution using the tool available on the Python Tutor website and it helped me figure it out. |
|
new_coder_231013 |
General Coding Help |
6 |
6,023 |
Jul-18-2022, 12:28 PM |
|
|
Thread: For Word, Count in List (Counts.Items())
Post: For Word, Count in List (Counts.Items())
Hello,
I'm going through an introductory Python book and there's some code for a program that finds the most common word in a text file. Please see below for the code:
name = input('Enter file:')
ha... |
|
new_coder_231013 |
General Coding Help |
6 |
6,023 |
Jul-14-2022, 12:04 PM |
|
|
Thread: List Creation and Position of Continue Statement In Regular Expression Code
Post: RE: List Creation and Position of Continue Stateme...
Thanks snippsat and deanhystad, appreciate it. |
|
new_coder_231013 |
General Coding Help |
3 |
2,487 |
Jun-15-2022, 12:00 PM |
|
|
Thread: List Creation and Position of Continue Statement In Regular Expression Code
Post: List Creation and Position of Continue Statement I...
Hello,
I'm going through a Python course and there's a section on extracting data using regular expressions in which the presenter shows the following code using re.findall within a for loop:
import... |
|
new_coder_231013 |
General Coding Help |
3 |
2,487 |
Jun-11-2022, 12:57 PM |
|
|
Thread: "If Len(Word) == 0" Code Block in Pig Latin Program
Post: RE: "If Len(Word) == 0" Code Block in Pig Latin Pr...
Got it, thank you ndc85430. |
|
new_coder_231013 |
General Coding Help |
3 |
3,003 |
Jan-02-2022, 04:58 PM |
|
|
Thread: "If Len(Word) == 0" Code Block in Pig Latin Program
Post: "If Len(Word) == 0" Code Block in Pig Latin Progra...
Hello,
I'm reading through an introductory Python book and there's a section in which the author presents code for a simple program that converts English into "pig Latin." The program takes user-ente... |
|
new_coder_231013 |
General Coding Help |
3 |
3,003 |
Dec-31-2021, 01:25 PM |
|
|
Thread: For Loop and Use of Brackets to Modify Dictionary in Tic-Tac-Toe Game
Post: RE: For Loop and Use of Brackets to Modify Diction...
Thanks again deanhystad, that's very helpful.
I think I understand what is going on in the for loop now but just want to confirm: Is it correct that the for loop "remembers" the most recent value of ... |
|
new_coder_231013 |
General Coding Help |
7 |
3,594 |
Dec-28-2021, 11:32 AM |
|
|
Thread: Definitions in User-Created Functions and For Loops
Post: RE: Definitions in User-Created Functions and For ...
Thanks ndc85430 and jefsummers. I found the Ned Batchelder video and plan on watching it.
A few other questions: So instead of using k and v in the for loop we could use whatever other letters we wan... |
|
new_coder_231013 |
General Coding Help |
6 |
3,207 |
Dec-28-2021, 10:58 AM |
|
|
Thread: Definitions in User-Created Functions and For Loops
Post: Definitions in User-Created Functions and For Loop...
Hello,
I'm going through an introductory book on Python and there's a section in which the author presents some code to demonstrate the concept of nested dictionaries. I understand everything that is... |
|
new_coder_231013 |
General Coding Help |
6 |
3,207 |
Dec-27-2021, 11:52 AM |
|
|
Thread: For Loop and Use of Brackets to Modify Dictionary in Tic-Tac-Toe Game
Post: RE: For Loop and Use of Brackets to Modify Diction...
Thanks Linenloid and deanhystad. So in technical terms, what is going on the left-hand side of line 14 (left of the equals sign)? I know "theBoard" has been defined as a dictionary, "move" is a variab... |
|
new_coder_231013 |
General Coding Help |
7 |
3,594 |
Dec-27-2021, 11:35 AM |
|
|
Thread: For Loop and Use of Brackets to Modify Dictionary in Tic-Tac-Toe Game
Post: For Loop and Use of Brackets to Modify Dictionary ...
Hello,
I'm going through an introductory book on Python and there's a chapter in which the author presents code for a simple tic-tac-toe game (see below):
theBoard = {'top-L': ' ', 'top-M': ' ', 'to... |
|
new_coder_231013 |
General Coding Help |
7 |
3,594 |
Dec-26-2021, 12:39 PM |
|
|
Thread: Using If Statements Instead of While Loop in Simple Game Program
Post: RE: Using If Statements Instead of While Loop in S...
Thanks ibreeden. I've revised my code as follows below but am now getting an error message that the names 'start' and 'stop' are not defined.
user_input = input("")
if user_input.lower() == help:
... |
|
new_coder_231013 |
Homework |
5 |
5,340 |
Dec-12-2021, 10:14 PM |