Skip to content

Forum in maintenance, we will back soon 🙂

Notifications
Clear all

Python Script

43 Posts
4 Users
21 Reactions
587 Views
Hasan Aboul Hasan
(@admin)
Posts: 1208
Member Admin
 

@google-rayazsiddiqi as @ssadvisor mentioned, I see you didn't save the file.

there is white circle beside the full name, save it and it will disappear. then try again

 
Posted : 03/30/2024 9:34 am
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

@husein Thanks this is all working fine now, not sure what the issue is. BTW the files I am creating are NOT in the Python folder (storing Python compiler), is this OK?

 
Posted : 03/30/2024 11:58 am
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

@ssadvisor I'm sorry I cant see these icons, please can you tell me again how to see them?

 
Posted : 03/30/2024 12:04 pm
(@husein)
Posts: 464
Member Moderator
 

@google-rayazsiddiqi Great! The problem probably was, as @ssadvisor mentioned, that you didn't save the changes.

And, yeah, it's alright. You can create the files wherever you want; I was just telling you to create distinct folders for each project, which would make it easier for you to navigate through them.

 
Posted : 03/30/2024 12:06 pm
(@husein)
Posts: 464
Member Moderator
 

@google-rayazsiddiqi Aren't these icons appearing on your screen?

Screenshot 2024 03 30 140643

 

 
Posted : 03/30/2024 12:07 pm
SSAdvisor reacted
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@google-rayazsiddiqi You should make a folder separate from your home folder to put your files in. Like:

mkdir myProject
cd myProject

then create a virtual environment

python3 -m venv venv

The first venv is the python command the second is the name of the virtual environment which can be whatever you like. Next:

code

Now you can start your programming creating files and other directories for your files.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 03/30/2024 2:54 pm
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

@husein yes they do appear

 
Posted : 04/04/2024 4:27 pm
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

@ssadvisor Thanks Ernie thats really great, much appreciated!

 
Posted : 04/04/2024 4:28 pm
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

@ssadvisor

python cmd prompt

I am getting an error on this, can you help please?

 
Posted : 04/04/2024 4:39 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@google-rayazsiddiqi try it with "python" instead of "python3" or maybe just py.  See https://docs.python.org/3/using/windows.html for more help.

This post was modified 6 months ago by SSAdvisor

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 04/04/2024 7:11 pm
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

Hi , I am finding it hard to follow the Python script modules, the lesson gives an overview and then we are asked to do tasks that require knowledge of other python commands. As an example, the exercise for the module use the term soup.find_all, which was never mentioned in the lesson, see solution below. How can we do the exercises if we don't have the knowledge? Also, as a newbie I am finding it really hard to remember all the commands, is this normal? Thankyou

image
This post was modified 6 months ago 2 times by Rayaz Siddiqi
 
Posted : 04/05/2024 3:03 pm
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

@ssadvisor I cant get this to work. Can I just not program in the Visual Studio Code environment?

 
Posted : 04/05/2024 5:44 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@google-rayazsiddiqi it's not about the programming, it's about the runtime environment that is executing the code. Do you have the path to your Python executable on the PATH environment variable?

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 04/05/2024 9:27 pm
(@google-rayazsiddiqi)
Posts: 95
Estimable Member
Topic starter
 

@ssadvisor I have no idea what you mean by path to Python executable on the PATH environment variable. Bear in-mind I have NEVER programmed in Python before, thats why I am doing the beginners course. Below is where the python program is stored:

image
 
Posted : 04/05/2024 10:50 pm
Hasan Aboul Hasan
(@admin)
Posts: 1208
Member Admin
 

@google-rayazsiddiqi, The examples are to give you an overview of what functionalities there are in Python as a beginner, and it is not a prerequisite. 

For example, soup is used for scraping, so the idea is to know that we can do scraping with Python.

If you feel stuck in one example, dont worry about it, you can skip it. not a big deal.

I am preparing a full new Python course just for beginners that goes more in depth. 

anyway, what exactly is the problem? where you are stuck now? we are here to help

 

 

 
Posted : 04/06/2024 8:43 am
Page 2 / 3
Share: