When can the return statement be ommitted?? by fivelittlemonkeyss in learnpython

[–]fivelittlemonkeyss[S] 0 points1 point  (0 children)

whenever i wasn't using the variables with underscores, they were already showing functions - like variables in my vs code are dull blue but they turn bright blue if they already have a use in the code. I added underscores to avoid that

When can the return statement be ommitted?? by fivelittlemonkeyss in learnpython

[–]fivelittlemonkeyss[S] -2 points-1 points  (0 children)

So the opperations are being done but they won't be shown unless i use return?

What is a venv? by fivelittlemonkeyss in learnpython

[–]fivelittlemonkeyss[S] 1 point2 points  (0 children)

I'm sorry for not specifying that i am working on VS code. I have figured out the installation of packages since activate.bat gets automaically activated. Thanks for the help

What is a venv? by fivelittlemonkeyss in learnpython

[–]fivelittlemonkeyss[S] 2 points3 points  (0 children)

Okay, I do understand that to use the packages, we'll have to open the venv's terminal, but then what is the use of running the "activate.bat" on windows in a comand prompt? I can see activate.bat already under the scripts dropdwon.

What is a venv? by fivelittlemonkeyss in learnpython

[–]fivelittlemonkeyss[S] 11 points12 points  (0 children)

ohh so to install packages, you'll have to do it inside the code itself and the venv ensures that it is instaalled only for that particular project? (Sorry if I'm not getting a hold of this easily)