Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,598,428 members, 6,030,914 topics. Date: Thursday, 03 December 2020 at 11:54 PM

A Thread For Tutorial On Python Programming - Programming (26) - Nairaland

Nairaland Forum / Science/Technology / Programming / A Thread For Tutorial On Python Programming (93550 Views)

Common good python programming practices you should know / A Thread For Tutorial On Graphics Design. / I Have A Very Import Question On Python Syntax (2) (3) (4)

(1) (2) (3) ... (23) (24) (25) (26) (Reply) (Go Down)

Re: A Thread For Tutorial On Python Programming by Hackathon(m): 3:41am On Nov 16
IN SEARCH OF NORD VPN? �

LOOK NO FURTHER, IT'S MADE FREE �

SEARCH "NORDHUBBOT" ON TELEGRAM AND EXPLORE �

DON'T BE GREEDY...TELL YOUR FRIENDS TOO
Re: A Thread For Tutorial On Python Programming by Excallibur(m): 5:06pm On Nov 17
Please help, I am trying to get a row in this matrix but I keep getting empty as the result of this code

matrix=[
[5, 6, 7],
[8, 3, 1],
[9, 3, 5]
]
for items in matrix:
for rows in items:
if items==items[1]:
print(rows)

1 Like

Re: A Thread For Tutorial On Python Programming by Semtu(m): 5:43pm On Nov 17
Excallibur:
Please help, I am trying to get a row in this matrix but I keep getting empty as the result of this code

matrix=[
[5, 6, 7],
[8, 3, 1],
[9, 3, 5]
]
for items in matrix:
for rows in items:
if items==items[1]:
print(rows)

Why not just use just convert it to a numpy array and easily use indexing rather than these loop statements.
Re: A Thread For Tutorial On Python Programming by Excallibur(m): 6:18pm On Nov 17
Semtu:


Why not just use just convert it to a numpy array and easily use indexing rather than these loop statements.
lol na begginer I be , still trying to master the basics
Re: A Thread For Tutorial On Python Programming by Semtu(m): 8:29pm On Nov 17
Excallibur:
lol na begginer I be , still trying to master the basics

I know, I'm just giving you an easier alternative... You'll still use numpy alot as you progress, so it's better you start getting used to it now.

1 Like 1 Share

Re: A Thread For Tutorial On Python Programming by bovage(m): 6:29pm On Nov 18
Excallibur:
Please help, I am trying to get a row in this matrix but I keep getting empty as the result of this code

matrix=[
[5, 6, 7],
[8, 3, 1],
[9, 3, 5]
]
for items in matrix:
for rows in items:
if items==items[1]:
print(rows)

All of the rows or just one. If just one which one?

If you want to get all of the rows, do this

for row in matrix:
print(row)
Re: A Thread For Tutorial On Python Programming by mikael4me: 6:44pm On Nov 18
Teejay13:


Thank you @paapi3d and all contributors for the support, i have been following up with this thread's videos and instruction

Please am a beginner in python and it's IDE. I have downloaded python as well as visual studio IDE as instructed

However, the challenge am having now is how to integrate python into the visual studio environment so i can start coding

Secondly, can i use visual studio IDE for data analysis?

Please any one in the house to assist? your feedback will be much appreciated�
I am more interested in using python for datascience so the best environment for me is Jupyter notebook launched on my chrome browser. The best IDE you can work in python for other purposes like web development using Django, Modeling, and building Modules is pycharm. You can download the cracked version from getintopc.com. Windows don't come with python preinstalled so you have do download and install the python version you want from the web, after install you need to copy the path where your python was install and paste it in the environmental variable path. Save and you are good to go with calling python from the cmd, pycharm or any IDE of your choice. There are plenty videos on YouTube that can help you with this. Cheers

1 Like

Re: A Thread For Tutorial On Python Programming by Missionaire: 10:20am On Nov 19
loiusdthird:
can I send u a dm
Hello loiusdthird, am sorry for responding to you this late. I'm just a beginner (python) programmer and I haven't even be steady sef. I'm after a lot of back and forth and trying other stuffs just trying to settle on Python.
Yesterday night, I tried running "Hello world" on sublime but the message wer I see eh, have been on it since yesterday night till this morning.

However, if you still want to contact me, you can go ahead. I'm even looking for a learning partner sef because this journey is not easy to even go solo.
I have some materials i can also share with you.
Re: A Thread For Tutorial On Python Programming by Missionaire: 10:25am On Nov 19
So I tried running "hello world" yesterday night but I keep getting this message:

[WinError 2] The system cannot find the file specified
[cmd: ['python3', '-u', 'C:\\Users\\Okporghe\\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\Python3.sublime-build']]
[dir: C:\Users\Okporghe\AppData\Roaming\Sublime Text 3\Packages\User]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Brackets\command;C:\Users\Okporghe\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\Okporghe\AppData\Local\Programs\Python\Python39\;C:\Users\Okporghe\AppData\Local\Programs\Python\Launcher\;C:\Users\Okporghe\AppData\Local\Microsoft\WindowsApps;C:\Users\Okporghe\AppData\Local\Programs\Microsoft VS Code\bin;/opt/node_moduler/bin/]
[Finished]

What could be the problem and possible solutions??
Re: A Thread For Tutorial On Python Programming by naijasensei: 1:24pm On Nov 19
Missionaire:
So I tried running "hello world" yesterday night but I keep getting this message:

[WinError 2] The system cannot find the file specified
[cmd: ['python3', '-u', 'C:\\Users\\Okporghe\\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\Python3.sublime-build']]
[dir: C:\Users\Okporghe\AppData\Roaming\Sublime Text 3\Packages\User]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Brackets\command;C:\Users\Okporghe\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\Okporghe\AppData\Local\Programs\Python\Python39\;C:\Users\Okporghe\AppData\Local\Programs\Python\Launcher\;C:\Users\Okporghe\AppData\Local\Microsoft\WindowsApps;C:\Users\Okporghe\AppData\Local\Programs\Microsoft VS Code\bin;/opt/node_moduler/bin/]
[Finished]

What could be the problem and possible solutions??

What are you trying to do? Are you trying to run a python script through Sublime text? If yes, how did you install Python on your system?
Re: A Thread For Tutorial On Python Programming by naijasensei: 1:35pm On Nov 19
Excallibur:
Please help, I am trying to get a row in this matrix but I keep getting empty as the result of this code

matrix=[
[5, 6, 7],
[8, 3, 1],
[9, 3, 5]
]
for items in matrix:
for rows in items:
if items==items[1]:
print(rows)

I believe you should type the following:

for items in matrix:
for rows in items:
# To print the second row
if items == matrix[1]:
print(rows)

1 Like

Re: A Thread For Tutorial On Python Programming by Missionaire: 7:42pm On Nov 19
naijasensei:


What are you trying to do? Are you trying to run a python script through Sublime text? If yes, how did you install Python on your system?


Yes I'm trying to run a python script through Sublime TE.

I installed Python from the site. 3.9, the latest version.

I've even edited the new build system in Sublime TE.
Re: A Thread For Tutorial On Python Programming by loiusdthird(m): 8:17pm On Nov 19
Missionaire:

Hello loiusdthird, am sorry for responding to you this late. I'm just a beginner (python) programmer and I haven't even be steady sef. I'm after a lot of back and forth and trying other stuffs just trying to settle on Python.
Yesterday night, I tried running "Hello world" on sublime but the message wer I see eh, have been on it since yesterday night till this morning.

However, if you still want to contact me, you can go ahead. I'm even looking for a learning partner sef because this journey is not easy to even go solo.
I have some materials i can also share with you.
You can just call me on

Lemme know when you get the number so that I can modify my post.
alright thanks
Re: A Thread For Tutorial On Python Programming by Missionaire: 8:23pm On Nov 19
loiusdthird:
alright thanks


You can modify the post and remove my number.

Thanks.
Re: A Thread For Tutorial On Python Programming by loiusdthird(m): 8:41pm On Nov 19
Missionaire:


You can modify the post and remove my number.
Thanks.
I have removed d number
Re: A Thread For Tutorial On Python Programming by naijasensei: 9:39pm On Nov 19
Missionaire:



Yes I'm trying to run a python script through Sublime TE.

I installed Python from the site. 3.9, the latest version.

I've even edited the new build system in Sublime TE.

First ensure python is working on your system.
1. Go to your list of installed apps, look for Python 3.9 IDLE, launch it. If it opens up go to step 2.
2. Go to your command line, or simply click on Run then type in cmd. At the command line prompt type in python then press enter. If you get an error, type in python3 the press enter. If you get an error again, then it is very likely you did not add your python installation to the Windows PATH variable.

Perform the tasks above, then let me know the outcome.
Re: A Thread For Tutorial On Python Programming by Semtu(m): 11:43am On Nov 20
Missionaire:
So I tried running "hello world" yesterday night but I keep getting this message:

[WinError 2] The system cannot find the file specified
[cmd: ['python3', '-u', 'C:\\Users\\Okporghe\\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\Python3.sublime-build']]
[dir: C:\Users\Okporghe\AppData\Roaming\Sublime Text 3\Packages\User]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Brackets\command;C:\Users\Okporghe\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\Okporghe\AppData\Local\Programs\Python\Python39\;C:\Users\Okporghe\AppData\Local\Programs\Python\Launcher\;C:\Users\Okporghe\AppData\Local\Microsoft\WindowsApps;C:\Users\Okporghe\AppData\Local\Programs\Microsoft VS Code\bin;/opt/node_moduler/bin/]
[Finished]

What could be the problem and possible solutions??

Run 'python --version' from terminal to check if python was properly installed
Re: A Thread For Tutorial On Python Programming by HELLASJ(m): 10:51pm On Nov 20
following
Re: A Thread For Tutorial On Python Programming by Luckybelt: 2:49pm On Nov 23
I m following a Python tutorial using Visual studio code on udemy. i only have the main code area on top, i cant get the two lower windows setup and the guy uses it a lot. How can i do it ? see my page

Re: A Thread For Tutorial On Python Programming by Semtu(m): 5:47pm On Nov 23
Luckybelt:
I m following a Python tutorial using Visual studio code on udemy. i only have the main code area on top, i cant get the two lower windows setup and the guy uses it a lot. How can i do it ? see my page

Just toggle your terminal, press ctrl + shift + p, then in the search bar, search for "toggle integrated terminal" and click on it

And seems your tutor is using Bash with vs code. So you'll need to install Bash and add the path to VS code settings.json, then toggle your bash terminal as I've described above.

You can also make use of your command prompt terminal if you are confused of what I've said above

1 Like

Re: A Thread For Tutorial On Python Programming by Missionaire: 7:53am On Nov 24
Semtu:

Run 'python --version' from terminal to check if python was properly installed

I've done that and it was properly installed.
I now use VS code and Pycharm.

Meanwhile, some of the Udemy courses I downloaded have some videos in them that do not play, play for a while and stops and have no sound.
What could be the problem and possible solutions??
Re: A Thread For Tutorial On Python Programming by Engineersolutio: 12:37am On Nov 25
Chat me on whatsapp if you know how to hack Facebook account via:+1 310-421-1661
Re: A Thread For Tutorial On Python Programming by Teejay13(m): 6:45pm On Nov 26
mikael4me:
I am more interested in using python for datascience so the best environment for me is Jupyter notebook launched on my chrome browser. The best IDE you can work in python for other purposes like web development using Django, Modeling, and building Modules is pycharm. You can download the cracked version from getintopc.com. Windows don't come with python preinstalled so you have do download and install the python version you want from the web, after install you need to copy the path where your python was install and paste it in the environmental variable path. Save and you are good to go with calling python from the cmd, pycharm or any IDE of your choice. There are plenty videos on YouTube that can help you with this. Cheers

Thanks for the guide.

1 Like

Re: A Thread For Tutorial On Python Programming by Aimore: 8:13am On Nov 27
Thanks for this post. Want to learn the python Training at an affordable cost reach us. Python Training in Chennai
Re: A Thread For Tutorial On Python Programming by Excallibur(m): 11:07am On Dec 02
Is it safe to refer to mobile games that require internet connection as web applications

1 Like

(1) (2) (3) ... (23) (24) (25) (26) (Reply)

Chronicle Of A Data Scientist/analyst / Why Waste 4 Years On Computer Science In University? / Freely Download Music, Videos, And Games All In One Place

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 115
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.