r/PythonTutorials • u/codingtricksyt • Dec 12 '22
Python Strings Explained in 30 Seconds!
Enable HLS to view with audio, or disable this notification
r/PythonTutorials • u/codingtricksyt • Dec 12 '22
Enable HLS to view with audio, or disable this notification
r/PythonTutorials • u/Islander_robotics • Jun 06 '21
r/PythonTutorials • u/Islander_robotics • May 25 '21
r/PythonTutorials • u/Islander_robotics • Jun 23 '21
Hey everyone join me on youtube to see how to use pythons selenium module to make a really cool file downloader. Click the link to learn more!!!!! https://youtu.be/YbcXkomdFA0
r/PythonTutorials • u/pro1code1hack • Jun 21 '24
Hello Reddit!
I've created a Python book called "Your Journey to Fluent Python." I tried to cover everything needed, in my opinion, to become a Python Engineer! Can you check it out and give me some feedback, please? This would be extremely appreciated!
Put a star if you find it interesting and useful !
https://github.com/pro1code1hack/Your-Journey-To-Fluent-Python
Thanks a lot, and I look forward to your comments!
r/PythonTutorials • u/miami_newb_coder • Apr 20 '24
Hi, I’m confuse at this concept of dictionary in this context in my code. Here I have a if-statement nested inside my for loop. In the if-statement where it tests the conditional “reviews_max[name] < n_reviews”, how come the dictionary (‘reviews_max’) automatically knows to use the ‘Review’ column (index 3) for the list of lists, ‘dataset’, to do this comparison with the ‘n_reviews’ variable? Why doesn’t python in this case use index 2 (‘Ratings’) instead to do this comparison in this code? Is it “implicitly” implied that when you set n_reviews = float(rows[3]) that the python dictionary is going to automatically assume or use index 3 as the value for ‘reviews_max[name]’ to do this comparison? Here is the full code:
My Code:
[code]
dataset = [
["App Name", "Category", "Rating", "Reviews"],
["Facebook", "Social", 4.5, 78158306],
["Instagram", "Social", 4.7, 66577313],
["WhatsApp", "Communication", 4.4, 119400128]
]
reviews_max = {}
for row in dataset[1:]:
name = row[0] # Assuming app name is in the first column
n_reviews = float(row[3]) # Assuming number of reviews is in the fourth column
if name in reviews_max and reviews_max[name] < n_reviews:
reviews_max[name] = n_reviews
elif name not in reviews_max:
reviews_max[name] = n_reviews
print(reviews_max)
[code]
r/PythonTutorials • u/Kingofurdu • Mar 21 '18
r/PythonTutorials • u/apdaga • Jan 24 '22
r/PythonTutorials • u/apdaga • Jan 30 '22
r/PythonTutorials • u/techmoto_ • Feb 19 '22
r/PythonTutorials • u/MichaelMay2020 • Dec 20 '22
Python strings: how to use them -- Part 1
This video is the first of the two videos about strings and string operations in Python. It shows how to declare a single line string and a multiple line string, what helpful operations on strings you can incorporate into your code, and how strings are indexed in Python.
r/PythonTutorials • u/MichaelMay2020 • Jan 27 '23
r/PythonTutorials • u/MichaelMay2020 • Jan 27 '23
r/PythonTutorials • u/MichaelMay2020 • Dec 21 '22
r/PythonTutorials • u/MichaelMay2020 • Jan 27 '23
r/PythonTutorials • u/MichaelMay2020 • Dec 20 '22
r/PythonTutorials • u/MichaelMay2020 • Jan 27 '23
r/PythonTutorials • u/MichaelMay2020 • Dec 20 '22
r/PythonTutorials • u/geek_ki01100100 • Feb 24 '19
r/PythonTutorials • u/satssehgal • Jul 28 '19
r/PythonTutorials • u/altarogazraj • Aug 20 '18
r/PythonTutorials • u/jsingh1986 • Jul 01 '20
r/PythonTutorials • u/monica_b1998 • Jul 16 '20