Learning Python from zero /u/Sharp-Dog4743 Python Education

Learning Python from zero /u/Sharp-Dog4743 Python Education

Hello all 🙂 I have a bachelor’s in Education and I just started my master’s degree in Computational Science. The master’s program accepts students with no background in computer science because they have a course in Practical Computing that “teaches you the basics”. Our textbook is Intro to Python for Computer science and Data science (Paul and Harvey Deitel) and we are reading 2 chapters every week!! I feel that we are running rather than walking for being an introductory course. Our professor assigns us a chapter to read and then we do problems in class, however, everyone else in my class has experience coding and they solve the problems easily with the professor while I resign to copy and paste the code without really understanding what’s going on. I feel that reading the chapters is not really helping me because the problems done in class look nothing like the ones that were done in the chapter. I know that without the basics, I can’t move on from one topic to the other just like that, and I’m feeling desperate because I need to pass the class but I don’t want to rely on just copying and pasting codes. I want to learn and understand what we are doing, but I don’t know where to start, or where to go to learn everything I need to know. I know that Python is just a language, but I need help with learning how to solve problems through coding in general as well. I would appreciate any advice! Thank you so much in advance

submitted by /u/Sharp-Dog4743
[link] [comments]

​r/learnpython Hello all 🙂 I have a bachelor’s in Education and I just started my master’s degree in Computational Science. The master’s program accepts students with no background in computer science because they have a course in Practical Computing that “teaches you the basics”. Our textbook is Intro to Python for Computer science and Data science (Paul and Harvey Deitel) and we are reading 2 chapters every week!! I feel that we are running rather than walking for being an introductory course. Our professor assigns us a chapter to read and then we do problems in class, however, everyone else in my class has experience coding and they solve the problems easily with the professor while I resign to copy and paste the code without really understanding what’s going on. I feel that reading the chapters is not really helping me because the problems done in class look nothing like the ones that were done in the chapter. I know that without the basics, I can’t move on from one topic to the other just like that, and I’m feeling desperate because I need to pass the class but I don’t want to rely on just copying and pasting codes. I want to learn and understand what we are doing, but I don’t know where to start, or where to go to learn everything I need to know. I know that Python is just a language, but I need help with learning how to solve problems through coding in general as well. I would appreciate any advice! Thank you so much in advance submitted by /u/Sharp-Dog4743 [link] [comments] 

Hello all 🙂 I have a bachelor’s in Education and I just started my master’s degree in Computational Science. The master’s program accepts students with no background in computer science because they have a course in Practical Computing that “teaches you the basics”. Our textbook is Intro to Python for Computer science and Data science (Paul and Harvey Deitel) and we are reading 2 chapters every week!! I feel that we are running rather than walking for being an introductory course. Our professor assigns us a chapter to read and then we do problems in class, however, everyone else in my class has experience coding and they solve the problems easily with the professor while I resign to copy and paste the code without really understanding what’s going on. I feel that reading the chapters is not really helping me because the problems done in class look nothing like the ones that were done in the chapter. I know that without the basics, I can’t move on from one topic to the other just like that, and I’m feeling desperate because I need to pass the class but I don’t want to rely on just copying and pasting codes. I want to learn and understand what we are doing, but I don’t know where to start, or where to go to learn everything I need to know. I know that Python is just a language, but I need help with learning how to solve problems through coding in general as well. I would appreciate any advice! Thank you so much in advance

submitted by /u/Sharp-Dog4743
[link] [comments]  Hello all 🙂 I have a bachelor’s in Education and I just started my master’s degree in Computational Science. The master’s program accepts students with no background in computer science because they have a course in Practical Computing that “teaches you the basics”. Our textbook is Intro to Python for Computer science and Data science (Paul and Harvey Deitel) and we are reading 2 chapters every week!! I feel that we are running rather than walking for being an introductory course. Our professor assigns us a chapter to read and then we do problems in class, however, everyone else in my class has experience coding and they solve the problems easily with the professor while I resign to copy and paste the code without really understanding what’s going on. I feel that reading the chapters is not really helping me because the problems done in class look nothing like the ones that were done in the chapter. I know that without the basics, I can’t move on from one topic to the other just like that, and I’m feeling desperate because I need to pass the class but I don’t want to rely on just copying and pasting codes. I want to learn and understand what we are doing, but I don’t know where to start, or where to go to learn everything I need to know. I know that Python is just a language, but I need help with learning how to solve problems through coding in general as well. I would appreciate any advice! Thank you so much in advance submitted by /u/Sharp-Dog4743 [link] [comments]

Read more

How to learn python without wasting my time /u/Any-Background-9158 Python Education

How to learn python without wasting my time /u/Any-Background-9158 Python Education

I have prior experience with programming and made some fairly complex programming projects in c and java and now I want to learn python for a project, how to learn it as fast as possible without wasting time and relearning basic programming (I want to specify here that I mean the language generally not framework that wil come after)

submitted by /u/Any-Background-9158
[link] [comments]

​r/learnpython I have prior experience with programming and made some fairly complex programming projects in c and java and now I want to learn python for a project, how to learn it as fast as possible without wasting time and relearning basic programming (I want to specify here that I mean the language generally not framework that wil come after) submitted by /u/Any-Background-9158 [link] [comments] 

I have prior experience with programming and made some fairly complex programming projects in c and java and now I want to learn python for a project, how to learn it as fast as possible without wasting time and relearning basic programming (I want to specify here that I mean the language generally not framework that wil come after)

submitted by /u/Any-Background-9158
[link] [comments]  I have prior experience with programming and made some fairly complex programming projects in c and java and now I want to learn python for a project, how to learn it as fast as possible without wasting time and relearning basic programming (I want to specify here that I mean the language generally not framework that wil come after) submitted by /u/Any-Background-9158 [link] [comments]

Read more

Google is starting to roll out Theft Detection Lock, Offline Device Lock, and Remote Lock to Android users in the US /u/MishaalRahman Android

Google is starting to roll out Theft Detection Lock, Offline Device Lock, and Remote Lock to Android users in the US /u/MishaalRahman Android

Edit: These three features actually appear to be rolling out globally, judging by all the replies I’ve received!

I just checked my Xiaomi 14T Pro and noticed that I have Theft Detection Lock and Offline Device Lock but not Remote Lock. Some Pixel users in the US tell me they have Remote Lock but not the other two.

Theft Detection Lock uses a ML model to detect when someone snatches your phone from your hand and tries to run away with it on foot, by bike, or by car. If detected, your phone will automatically lock, blocking unwanted access to your apps and data.

Offline Device Lock automatically locks your screen if a thief tries to keep your phone disconnected from the Internet for an extended period of time.

Remote Lock lets you remotely lock your phone using just your phone number in case you can’t sign into Find My Device using your Google account password.

All three features entered beta in August, starting in Brazil. Google told me the final versions of these features would more widely roll out this year, and it seems the features have begun expanding.

LMK which (if any) of these 3 new features you have!

submitted by /u/MishaalRahman
[link] [comments]

​r/Android Edit: These three features actually appear to be rolling out globally, judging by all the replies I’ve received! I just checked my Xiaomi 14T Pro and noticed that I have Theft Detection Lock and Offline Device Lock but not Remote Lock. Some Pixel users in the US tell me they have Remote Lock but not the other two. Theft Detection Lock uses a ML model to detect when someone snatches your phone from your hand and tries to run away with it on foot, by bike, or by car. If detected, your phone will automatically lock, blocking unwanted access to your apps and data. Offline Device Lock automatically locks your screen if a thief tries to keep your phone disconnected from the Internet for an extended period of time. Remote Lock lets you remotely lock your phone using just your phone number in case you can’t sign into Find My Device using your Google account password. All three features entered beta in August, starting in Brazil. Google told me the final versions of these features would more widely roll out this year, and it seems the features have begun expanding. LMK which (if any) of these 3 new features you have! submitted by /u/MishaalRahman [link] [comments] 

Edit: These three features actually appear to be rolling out globally, judging by all the replies I’ve received!

I just checked my Xiaomi 14T Pro and noticed that I have Theft Detection Lock and Offline Device Lock but not Remote Lock. Some Pixel users in the US tell me they have Remote Lock but not the other two.

Theft Detection Lock uses a ML model to detect when someone snatches your phone from your hand and tries to run away with it on foot, by bike, or by car. If detected, your phone will automatically lock, blocking unwanted access to your apps and data.

Offline Device Lock automatically locks your screen if a thief tries to keep your phone disconnected from the Internet for an extended period of time.

Remote Lock lets you remotely lock your phone using just your phone number in case you can’t sign into Find My Device using your Google account password.

All three features entered beta in August, starting in Brazil. Google told me the final versions of these features would more widely roll out this year, and it seems the features have begun expanding.

LMK which (if any) of these 3 new features you have!

submitted by /u/MishaalRahman
[link] [comments]  Edit: These three features actually appear to be rolling out globally, judging by all the replies I’ve received! I just checked my Xiaomi 14T Pro and noticed that I have Theft Detection Lock and Offline Device Lock but not Remote Lock. Some Pixel users in the US tell me they have Remote Lock but not the other two. Theft Detection Lock uses a ML model to detect when someone snatches your phone from your hand and tries to run away with it on foot, by bike, or by car. If detected, your phone will automatically lock, blocking unwanted access to your apps and data. Offline Device Lock automatically locks your screen if a thief tries to keep your phone disconnected from the Internet for an extended period of time. Remote Lock lets you remotely lock your phone using just your phone number in case you can’t sign into Find My Device using your Google account password. All three features entered beta in August, starting in Brazil. Google told me the final versions of these features would more widely roll out this year, and it seems the features have begun expanding. LMK which (if any) of these 3 new features you have! submitted by /u/MishaalRahman [link] [comments]

Read more

How does “Import *” work exactly? Why does Vscode sometimes complains and sometimes not. /u/wnluk Python Education

How does “Import *” work exactly? Why does Vscode sometimes complains and sometimes not. /u/wnluk Python Education

I’m relatively new to python. I mean, I used it sometimes over the years whenever I needed anything small, but I never bothered to really learn it, never taken it seriously.
Now I wanted to learn networking, it sounds interesting, so I wanted to learn scapy.
I figured I’ll ask ChatGPT for a jumping-off point, and then I go from there. So I import:
from scapy.all import ICMP,IP,sr1
But then I think I can instead just write:
from scapy.all import *
And Vscode starts complaining.
What’s curious, it complains about ICMP() and IP(), but not sr1().
I get something like “IP is not defined”
What is happening? Shouldn’t “import *” import everything?
GPT tells me that “import *” is against the best practice, and I get that, but just because I shouldn’t doesn’t mean I’m not allowed to. Does it?

submitted by /u/wnluk
[link] [comments]

​r/learnpython I’m relatively new to python. I mean, I used it sometimes over the years whenever I needed anything small, but I never bothered to really learn it, never taken it seriously. Now I wanted to learn networking, it sounds interesting, so I wanted to learn scapy. I figured I’ll ask ChatGPT for a jumping-off point, and then I go from there. So I import: from scapy.all import ICMP,IP,sr1 But then I think I can instead just write: from scapy.all import * And Vscode starts complaining. What’s curious, it complains about ICMP() and IP(), but not sr1(). I get something like “IP is not defined” What is happening? Shouldn’t “import *” import everything? GPT tells me that “import *” is against the best practice, and I get that, but just because I shouldn’t doesn’t mean I’m not allowed to. Does it? submitted by /u/wnluk [link] [comments] 

I’m relatively new to python. I mean, I used it sometimes over the years whenever I needed anything small, but I never bothered to really learn it, never taken it seriously.
Now I wanted to learn networking, it sounds interesting, so I wanted to learn scapy.
I figured I’ll ask ChatGPT for a jumping-off point, and then I go from there. So I import:
from scapy.all import ICMP,IP,sr1
But then I think I can instead just write:
from scapy.all import *
And Vscode starts complaining.
What’s curious, it complains about ICMP() and IP(), but not sr1().
I get something like “IP is not defined”
What is happening? Shouldn’t “import *” import everything?
GPT tells me that “import *” is against the best practice, and I get that, but just because I shouldn’t doesn’t mean I’m not allowed to. Does it?

submitted by /u/wnluk
[link] [comments]  I’m relatively new to python. I mean, I used it sometimes over the years whenever I needed anything small, but I never bothered to really learn it, never taken it seriously. Now I wanted to learn networking, it sounds interesting, so I wanted to learn scapy. I figured I’ll ask ChatGPT for a jumping-off point, and then I go from there. So I import: from scapy.all import ICMP,IP,sr1 But then I think I can instead just write: from scapy.all import * And Vscode starts complaining. What’s curious, it complains about ICMP() and IP(), but not sr1(). I get something like “IP is not defined” What is happening? Shouldn’t “import *” import everything? GPT tells me that “import *” is against the best practice, and I get that, but just because I shouldn’t doesn’t mean I’m not allowed to. Does it? submitted by /u/wnluk [link] [comments]

Read more
Artem Russakovskii on X: “SwiftKey is working on dictation mode, replacing the legacy IME voice-to-text” /u/MishaalRahman Android

Artem Russakovskii on X: “SwiftKey is working on dictation mode, replacing the legacy IME voice-to-text” /u/MishaalRahman Android

Artem Russakovskii on X: “SwiftKey is working on dictation mode, replacing the legacy IME voice-to-text” /u/MishaalRahman Android submitted by /u/MishaalRahman
[link] [comments]

​r/Android submitted by /u/MishaalRahman [link] [comments]  submitted by /u/MishaalRahman
[link] [comments]   submitted by /u/MishaalRahman [link] [comments]

Read more

Did anyone else’s mind get blown learning about nesting loops? /u/PathRealistic6940 Python Education

Did anyone else’s mind get blown learning about nesting loops? /u/PathRealistic6940 Python Education

Edit: It is actually recursion, not nesting loops. Got the label wrong.

So was going through some challenges and got into backtracking. Long story short, I learned about nesting for loops, but not visually. Like this instead.

def find_zero_sum_subset(arr): arr_sub = [] def backtrack(start, current_subset): if sum(current_subset) == 0 and len(current_subset) > 0: arr_sub.append(current_subset) for i in range(start,len(arr)): backtrack(i+1, current_subset + [arr[i]]) return arr_sub return backtrack(0,[])

That’s nuts. It starts a loop in the middle of a loop, in the middle of a loop, n times. Now that i look back on it, it makes sense. Took me a while to wrap my head around this

submitted by /u/PathRealistic6940
[link] [comments]

​r/learnpython Edit: It is actually recursion, not nesting loops. Got the label wrong. So was going through some challenges and got into backtracking. Long story short, I learned about nesting for loops, but not visually. Like this instead. def find_zero_sum_subset(arr): arr_sub = [] def backtrack(start, current_subset): if sum(current_subset) == 0 and len(current_subset) > 0: arr_sub.append(current_subset) for i in range(start,len(arr)): backtrack(i+1, current_subset + [arr[i]]) return arr_sub return backtrack(0,[]) That’s nuts. It starts a loop in the middle of a loop, in the middle of a loop, n times. Now that i look back on it, it makes sense. Took me a while to wrap my head around this submitted by /u/PathRealistic6940 [link] [comments] 

Edit: It is actually recursion, not nesting loops. Got the label wrong.

So was going through some challenges and got into backtracking. Long story short, I learned about nesting for loops, but not visually. Like this instead.

def find_zero_sum_subset(arr): arr_sub = [] def backtrack(start, current_subset): if sum(current_subset) == 0 and len(current_subset) > 0: arr_sub.append(current_subset) for i in range(start,len(arr)): backtrack(i+1, current_subset + [arr[i]]) return arr_sub return backtrack(0,[])

That’s nuts. It starts a loop in the middle of a loop, in the middle of a loop, n times. Now that i look back on it, it makes sense. Took me a while to wrap my head around this

submitted by /u/PathRealistic6940
[link] [comments]  Edit: It is actually recursion, not nesting loops. Got the label wrong. So was going through some challenges and got into backtracking. Long story short, I learned about nesting for loops, but not visually. Like this instead. def find_zero_sum_subset(arr): arr_sub = [] def backtrack(start, current_subset): if sum(current_subset) == 0 and len(current_subset) > 0: arr_sub.append(current_subset) for i in range(start,len(arr)): backtrack(i+1, current_subset + [arr[i]]) return arr_sub return backtrack(0,[]) That’s nuts. It starts a loop in the middle of a loop, in the middle of a loop, n times. Now that i look back on it, it makes sense. Took me a while to wrap my head around this submitted by /u/PathRealistic6940 [link] [comments]

Read more