Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,646 members, 7,801,878 topics. Date: Friday, 19 April 2024 at 03:27 AM

I Have A Very Import Question On Python Syntax - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / I Have A Very Import Question On Python Syntax (4382 Views)

Help Python Syntax Error! / A Thread For Tutorial On Python Programming / I want to solve question on python basic (2) (3) (4)

(1) (2) (Reply) (Go Down)

I Have A Very Import Question On Python Syntax by michelle5683(f): 7:32pm On Sep 22, 2017
I downloaded a nine hours video on python from youtube, and after seeing the video a while ago. I had basic knowledge of python. From strings - beautifulsoup - turtle - matplotlib etc.and I had a particular orientation on the syntax of python. Recently, in a bid to perfect my skills in python, I ventured into code academy to study with them , and then I noticed some differences. I just want to know if there are different ways of doing this or if I am wrong.

PS: I am just a beginner grin

My question is this,
In code academy, you may see something like
name = raw_input("What is your name?"wink, but this code doesn't work in my shell except I change it to
name = input("What is your name?"wink, I've also seen some other minor differences, what could be happening?

1 Like

Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 8:15pm On Sep 22, 2017
no python programmers?
Re: I Have A Very Import Question On Python Syntax by nsimageorge(m): 8:40pm On Sep 22, 2017
What python version is installed on your local machine?
Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 8:52pm On Sep 22, 2017
nsimageorge:
What python version is installed on your local machine?

3.4
Re: I Have A Very Import Question On Python Syntax by Seun(m): 8:57pm On Sep 22, 2017
michelle5683:
3.4
Your tutorial is using an outdated version of Python. Search for information about Python 2 and Python 3

2 Likes 2 Shares

Re: I Have A Very Import Question On Python Syntax by dometome: 9:10pm On Sep 22, 2017
Seun:
Your tutorial is using an outdated version of Python. Search for information about Python 2 and Python 3
Python 2 is not yet outdated, at least for now.
Re: I Have A Very Import Question On Python Syntax by dometome: 9:12pm On Sep 22, 2017
OP I suggest you start from Html, then CSS, then you move to JavaScript. After Js you can learn python.
Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 9:48pm On Sep 22, 2017
dometome:
OP I suggest you start from Html, then CSS, then you move to JavaScript. After Js you can learn python.

I did those last year. I mean HTML5 and CSS3

1 Like

Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 9:49pm On Sep 22, 2017
Seun:
Your tutorial is using an outdated version of Python. Search for information about Python 2 and Python 3
Which of the tutorials is outdated?
Re: I Have A Very Import Question On Python Syntax by Nobody: 10:00pm On Sep 22, 2017
@OP codeacademy uses python2.7 idle.. You're using 3.4 on your machine..The library functions for 2.7 and 3.x vary, though not significantly. Once you have a look at the documentation, you will get to know what its about... input and raw_input, etc.

i never used 2.7 .. But i can rewrite it in 3 .. The difference isn't really a big one to grab..

1 Like

Re: I Have A Very Import Question On Python Syntax by dometome: 3:50am On Sep 23, 2017
michelle5683:


I did those last year. I mean HTML5 and CSS3
Those are not programming languages but mark up and styling languages, JavaScript is the programming language, but all three make you a very good programmer, HTML and CSS3 are like stairs
Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 4:56am On Sep 23, 2017
dometome:
Those are not programming languages but mark up and styling languages, JavaScript is the programming language, but all three make you a very good programmer, HTML and CSS3 are like stairs
Thanks
Re: I Have A Very Import Question On Python Syntax by holuphisayor(m): 5:22am On Sep 23, 2017
in python 2+ its raw_input python 3+ is input your python version matters

1 Like

Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 1:20pm On Sep 23, 2017
am happy a lady is learning how to code. python is an awesome language.
Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 2:44pm On Sep 23, 2017
osarenomaspecial:
am happy a lady is learning how to code. python is an awesome language.

Does it matter that I've chosen 3 over 2?
Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 3:47pm On Sep 23, 2017
michelle5683:


Does it matter that I've chosen 3 over 2?
it depends, there are some python libraries written in version 2, integrating version 3 will not work. learning both will be helpful.
Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 3:51pm On Sep 23, 2017
osarenomaspecial:
it depends, there are some python libraries written in version 2, integrating version 3 will not work. learning both will be helpful.
Okay. Thanks
Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 4:32pm On Sep 23, 2017
michelle5683:

Okay. Thanks
you are welcome. if you are proficient in Python you can work on artificial intelligence, which is my Area.
Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 4:35pm On Sep 23, 2017
osarenomaspecial:
you are welcome. if you are proficient in Python you can work on artificial intelligence, which is my Area.

Okay. I don't know what I want to do. I was thinking software development
Re: I Have A Very Import Question On Python Syntax by 4kings: 4:46pm On Sep 23, 2017
osarenomaspecial:
you are welcome. if you are proficient in Python you can work on artificial intelligence, which is my Area.
Wow, what part of artificial intelligence have you worked on?
Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 5:16pm On Sep 23, 2017
4kings:

Wow, what part of artificial intelligence have you worked on?
i have worked on Image recognition using deep learning but now am currently working on crime detecting and tracking system using artificial intelligence. to train the system to recognize crime but I discovered it was very complex, it involved machine learning, deep learning and reinforcements learning am not good with reinforcement learning, that is what I want to learn now.

2 Likes

Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 5:19pm On Sep 23, 2017
osarenomaspecial:
you are welcome. if you are proficient in Python you can work on artificial intelligence, which is my Area.
How do I learn this?
Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 5:23pm On Sep 23, 2017
michelle5683:


Okay. I don't know what I want to do. I was thinking software development
software development is ok. always learn a programming language base on what you want to use it for. all programming languages have strength and weakness. for example Golang and Erlang are very good in distributed system, nodejs and php for web application and so on.

1 Like

Re: I Have A Very Import Question On Python Syntax by 4kings: 5:28pm On Sep 23, 2017
osarenomaspecial:
i have worked on Image recognition using deep learning but now am currently working on crime detecting and tracking system using artificial intelligence. to train the system to recognize crime but I discovered it was very complex, it involved machine learning, deep learning and reinforcements learning am not good with reinforcement learning, that is what I want to learn now.
Cool, i've worked on image recognition but using SVM.
I won't say i know deep learning enough, i've not applied it to any real project, i'm still battling with clustering algorithms.
And i've not even touched reinforcement learning.

How would you go about crime detection, is it based on text data or image data?

And have you worked on speech synthesizer? currently doing a project around it.
Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 5:28pm On Sep 23, 2017
michelle5683:

How do I learn this?
you need mathematics but you can do it without mathematics but you won't be able to read research papers. I want to become a researcher in the field.

1 Like

Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 5:29pm On Sep 23, 2017
4kings:

Cool, i've worked on image recognition but using SVM.
I won't say i know deep learning enough, i've not applied it to any real project, i'm still battling with clustering algorithms.
And i've not even touched reinforcement learning.

How would you go about crime detection, is it based on text data or image data?

And have you worked on speech synthesizer? currently doing a project around it.
are you a researcher?
Re: I Have A Very Import Question On Python Syntax by 4kings: 5:33pm On Sep 23, 2017
osarenomaspecial:
are you a researcher?
Nope, just a programmer.
Any reason?

1 Like

Re: I Have A Very Import Question On Python Syntax by SoftEng: 6:43pm On Sep 23, 2017
osarenomaspecial:
i have worked on Image recognition using deep learning but now am currently working on crime detecting and tracking system using artificial intelligence. to train the system to recognize crime but I discovered it was very complex, it involved machine learning, deep learning and reinforcements learning am not good with reinforcement learning, that is what I want to learn now.

Had to login because of this...
Nice to see that people are getting into deep learning (DL).
I have also been reading a lot about it for about a some time now (with some small image classification experiments on cifar-10 image dataset).

I have 2 questions for you.
1. Since you use python, do you use a DL framework/library. If yes, which one?
2. How does reinforcement learning (RL) fit into your project for crime dectection?

My guess for #2 is that you may want a system that can also 'act' and not just classify scenes as 'crime' or 'not crime'. If this is the case, then maybe I guess developing the system to 'act' by calling the appropriate security authority might be one of the angles you're looking at it from.

Anyway, I'm just guessing. I await you reply.

Thanks.


Lastly, @OP
Keep up the good work.
We need more people to take up interest in software (and also hardware) in this country.
Even more important than the above statement, we need more people to start using their skills to solve practical problems in our society.

Well done.
Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 6:47pm On Sep 23, 2017
4kings:

Nope, just a programmer.
Any reason?
OK. I want to be good with the maths so that I can read research papers.
Re: I Have A Very Import Question On Python Syntax by 4kings: 7:05pm On Sep 23, 2017
osarenomaspecial:
OK. I want to be good with the maths so that I can read research papers.
Ya, that's why i've not gone deep in DL, i only understand the theoretical explanations of neurons movement and not enough maths yet.
Still sticking to basic machine learning algorithms for now.
Re: I Have A Very Import Question On Python Syntax by osarenomaspecial: 7:09pm On Sep 23, 2017
SoftEng:


Had to login because of this...
Nice to see that people are getting into deep learning (DL).
I have also been reading a lot about it for about a some time now (with some small image classification experiments on cifar-10 image dataset).

I have 2 questions for you.
1. Since you use python, do you use a DL framework/library. If yes, which one?
2. How does reinforcement learning (RL) fit into your project for crime dectection?

My guess for #2 is that you may want a system that can also 'act' and not just classify scenes as 'crime' or 'not crime'. If this is the case, then maybe I guess developing the system to 'act' by calling the appropriate security authority might be one of the angles you're looking at it from.

Anyway, I'm just guessing. I await you reply.

Thanks.


Lastly, @OP
Keep up the good work.
We need more people to take up interest in software (and also hardware) in this country.
Even more important than the above statement, we need more people to start using their skills to solve practical problems in our society.

Well done.
am using tensorflow, pytorch and Python numpy. only use numpy when you are good with the theories and maths but those libraries do that for you with ease. your guess are right, as I earlier said it a very complex work, up till now am still looking for ways to solve it. I downloaded a paper yesterday which I believe will give me clue to solve the problem, the paper is on reinforcement learning. that is the reason I want to learn reinforcement learning.

1 Like 1 Share

Re: I Have A Very Import Question On Python Syntax by michelle5683(f): 7:23pm On Sep 23, 2017
osarenomaspecial:
am using tensorflow, pytorch and Python numpy. only use numpy when you are good with the theories and maths but those libraries do that for you with ease. your guess are right, as I earlier said it a very complex work, up till now am still looking for ways to solve it. I downloaded a paper yesterday which I believe will give me clue to solve the problem, the paper is on reinforcement learning. that is the reason I want to learn reinforcement learning.

It's seems as though artificial intelligence is a large and unexploited part of python

(1) (2) (Reply)

Programmers, Please Recommend A Good Laptop For Me. / Biometric Access App: Which Programming Language Is Best / Which Ide Is Best For Developing Asp.net Applications

(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 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 38
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.