VERY Newbie question about programming and programs. ?

In summary: I'm really enjoying it myself.In summary, the person is learning to program and wants to make a simple program that shows the average of a set of numbers. They start with basic code via a terminal and then move on to user interfaces. They would need to learn the basics of Python first. If they follow the tutorials, they should have no problems making the program.
  • #1
nukeman
655
0
Bare with me here guys...:)

I don't know a great deal at all about programming and what not.

Here is what I want to do.

I want to make a (simple)program where I would imput, let's say 10 numbers, and then I hit the "Enter" or whatever button I make, and it shows me:

*The average of the numbers

Like a program I can open, and a screen pops up where I input the numbers, or whatever. Like a calculator

THATS it! Then later on I can change it to show more complex calculations, but the idea here is for me to learn how to make such a program.

What program would I use to make this?

Thank you all very much!
 
Technology news on Phys.org
  • #2
You're looking for a scripting language.

I suppose python is a good start, there are plenty of tutorials out there for it and it's free and multiplatform.
 
  • #3
So with python, I can create a little program like that I can use?

THanks very much
 
  • #4
Well it's not going to be easy. You'll have to learn the basics.

Start with basic code via a terminal and then you'd move on to GUI (Graphical User Interface) programming.

If you follow the tutorials, there shouldn't be any problems.

You're not just going to make a GUI straight off though.
 
  • #6
If not right off the bat, what would I be doing right off the bat when going through Python user tutorials?

Thanks all!


jarednjames said:
Well it's not going to be easy. You'll have to learn the basics.

Start with basic code via a terminal and then you'd move on to GUI (Graphical User Interface) programming.

If you follow the tutorials, there shouldn't be any problems.

You're not just going to make a GUI straight off though.
 
  • #7
The tutorials will start by explaining everything such as Variables, Functions etc to you.

It will then teach you basic scripting and how to use it (with a 'Hello World' example).

Then once you can do that and write your own scripts, you can move on to making user interfaces.
 
  • #8
Basically, you'll write programs that run through the command line interface.
 
  • #9
Great, I am excited!

Thanks!
 
  • #10
python.png
 
  • #11
That does it! My self-learning project this summer is going to be Python. :cool:

It's about time for me to learn another language anyway, after Fortran, Pascal, C++ and Perl.
 
  • #13
All great info guys!

What version should I be downloading, given the info I gave you above on what i want?

Thanks!
 
  • #14
I'd go with 2.*, which is the current standard. Python 3 is still fairly new, and most programs are written for Python 2.*.

I have Python 2.6, 2.7, and 3.1 on my system.
 
  • #15
jhae2.718 said:
I'd go with 2.*, which is the current standard. Python 3 is still fairly new, and most programs are written for Python 2.*.

I have Python 2.6, 2.7, and 3.1 on my system.

2.7 is the one to choose out of that lot and I'd recommend it.

3.1 is their shiny new one, but there isn't much compatibility with other software at the moment.
 
  • #16
I second that, 2.7 is what I use the most. In the lab I work in we use 2.6 (2.6 and 2.7 are mostly compatible), and I have 3.1 just to play with.

For GUI stuff I use wxPython, for math NumPy and SciPy. Plotting with matplotlib.
 
  • #17
Great, thanks guys, can't wait to get started.
 
  • #18
:rofl: Thanks for that comic, jhae2.718. I enjoyed that.

I'm slowly learning a bit of Python, myself. Seems pretty good, and it's time I retired Perl anyways. Still not 100% sure about the way indentation is handled, but I think I can get over that. Heck, it may even win me over on that. You never know.
 
  • #19
Grep said:
:rofl: Thanks for that comic, jhae2.718. I enjoyed that.

I have it taped next to my computer. One of my favorites, especially since my role in my lab is "Python code monkey".

Grep said:
I'm slowly learning a bit of Python, myself. Seems pretty good, and it's time I retired Perl anyways.

I need to learn Perl, but I can never find the time. As it is, I barely remember C (thankfully I have a copy of K&R), and I never quite made it to C++ (though I'll be taking a class next semester.) I also have my hands full switching over to Linux.

Grep said:
Still not 100% sure about the way indentation is handled, but I think I can get over that. Heck, it may even win me over on that. You never know.

The way whitespace is treated is weird at first, but you get used to it.
 
  • #20
First day today learning Python. First computer language ever...Having a blast!

My area of study is Physics and Biochemistry. I have to admitt, so far this is VERY fun :)

Thanks guys!
 
  • #21
I know that python is one of the best programming languages from new people. But I first learned coding in Lisp, and I still have a deep love for the language! It's a perfect programming language and it has a very mathematical feeling around it (which is a good thing for me).

It even has it's own xkcd-comic, with which I agree fully:

lisp_cycles.png
 
  • #22
Like http://www.davesbrain.ca/science/averager.html" .
 
Last edited by a moderator:
  • #23
lisp.jpg
 

1. What is programming?

Programming is the process of creating instructions for a computer to execute a specific task or set of tasks. This is done using a programming language, which consists of a set of rules and syntax for writing code that the computer can understand.

2. What is the difference between a program and an application?

A program and an application are often used interchangeably, but there is a slight difference. A program is a set of instructions written in a programming language, while an application is a program that has been compiled and packaged for a specific purpose, such as a game or a productivity tool.

3. What is the difference between coding and programming?

Coding and programming are often used interchangeably, but there is a subtle difference. Coding refers to the act of writing code using a programming language, while programming encompasses the entire process of creating a program, including planning, designing, and testing.

4. How do I get started with programming?

The best way to get started with programming is to choose a programming language that interests you and start learning its basics. There are many resources available online, such as tutorials, videos, and online courses, to help you learn programming. It is also important to practice regularly and work on small projects to improve your skills.

5. Is programming difficult to learn?

Like any skill, programming requires dedication and practice to master. It may seem difficult at first, but with consistent effort and a willingness to learn, anyone can learn how to program. It is important to start with the basics and build your knowledge gradually, as programming concepts can be complex and build upon each other.

Similar threads

  • Programming and Computer Science
Replies
12
Views
1K
  • Programming and Computer Science
Replies
16
Views
1K
  • Programming and Computer Science
Replies
1
Views
726
  • Programming and Computer Science
2
Replies
49
Views
3K
  • Programming and Computer Science
2
Replies
54
Views
3K
  • Programming and Computer Science
2
Replies
41
Views
3K
  • Programming and Computer Science
Replies
8
Views
1K
  • Programming and Computer Science
2
Replies
58
Views
3K
  • Programming and Computer Science
Replies
15
Views
1K
  • Programming and Computer Science
Replies
30
Views
2K
Back
Top