468,484 Members | 1,587 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

What would be a good first program for a seasoned programmer who is new to python?

I know a number of programming languages, including Basic (etc...), C (etc...), HTML/Javascript/CSS/Java/PHP among others. I am learning for self-pleasure, but obviously I can and do put it for use towards financial gain sometimes.

Essentially, starting a fairly simply language such as Python from the basics is incredibly unstimulating. I was thinking of diving head first by creating my own program (any suggestions as to complexity?) and learning it that way. Does anyone else have any experience or input?
May 7 '21 #1
1 3615
Banfa
9,055 Expert Mod 8TB
Implement some maths formula e.g. Sieve of Eratosthenes or some other prime number generator. That's usually my first call when trying out a new language as it involves control structures and printing data and/or writing files.

Implement a simple(ish) search routine, can you find all the occurrences of a word in a file? Can you extract all matching lines? Can you extract all matching lines only once even if the word appears on some lines more than once?

Slightly depends if you have a use in mind in which case something related to that use.
4 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
34 posts views Thread by Brandon J. Van Every | last post: by
22 posts views Thread by Brad Tilley | last post: by
5 posts views Thread by cj | last post: by
26 posts views Thread by mwt | last post: by
3 posts views Thread by Jason Taylor | last post: by
21 posts views Thread by =?ISO-8859-1?Q?Rog=E9rio_Brito?= | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.