471,058 Members | 1,008 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,058 software developers and data experts.

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 3785
9,065 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.
May 18 '21 #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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.