[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I am relatively new to python and coding in general, give me

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 40
Thread images: 4

File: python.png (80KB, 1000x1000px) Image search: [Google]
python.png
80KB, 1000x1000px
I am relatively new to python and coding in general, give me some ideas for practice
Here the last script I wrote
http://pastebin.com/ZUYp3LpZ
It takes roman numerals and converts it into base-10
>>
The reverse.
>>
Make a program that generates prime imaginary numbers.
>>
File: 1431524483157.png (378KB, 1450x1080px) Image search: [Google]
1431524483157.png
378KB, 1450x1080px
>>
>>52417849
That's way harder than the one I did
>>52417891
Alright, there is some things in there I can do
>>
In C Programming 101 they told us to write a sudoku solver.

Try that.
>>
>>52417973
>That's way harder than the one I did

That's the fucking point
>>
>>52418015
You have to make GUI for that, I am not there yet
>>
>>52418167
no you don't. 2D arrays will suffice.
>>
>>52418167
You really don't need to. You can take in the entire thing as:
-2-5-1-9-
8--2-3--6
-3--6--7-
--1---6--
54-----19
--2---7--
-9--3--8-
2--8-4--7
-1-9-7-6-
>>
>>52418167
No you don't, just print the output to terminal and read the "puzzle" from a file.
>>
>>52418242
>>52418272
>>52418562
Do I need GUI though?
That's what I want to know
>>
>>52418601
r u joking me m8
>>
>>52418601
>3 posts saying you don't need it
>"do I need it?"
mayhap programming is not for you
>>
>>52418648
ayy lmao
hi newfriend
>>
>>52418606
>>52418648
just tell me do i need GUI?
>>
>>52418693
yes
you need GUI
>>
>>52418693
You definitely need a GUI
>>
>>52418705
>>52418715

Finally someone
Thank you
>>
>>52417891
These projects are so fucking boring m8s
>hurr durr make the tetris
Someone make something like this but interesting
>>
>>52418881
make an app that generates suggestions for projects
>>
File: 1406918696432.jpg (36KB, 356x267px) Image search: [Google]
1406918696432.jpg
36KB, 356x267px
>>52418907
>>
>>52418907
How about making an app that suggests to anons to make an apps that suggests projects
>>
>>52418961
how about you shut the fuck up
>>
>>52417814
I made a Java program that adds funny texts to images. Do that!
>>
>>52417814
Make a bot that posts rational replies in /g/. Yes you will have to handle captchas.

Bonus points to make it solve fizzbuzz and post the answer in /g/dpt
>>
>>52417814
Write a key value store that exposes an API over http. Store persists to disk.

Then write a client that uses it.

Then expand on that and make the client hammer it and load test it.

Then make the server multithreaded and able to handle more load.

Then if you're up to it, write it in another easy language more suited to shit like this (go or something else) and observe the difference in performance and development time/difficulty.
>>
>>52419049
no
>>
>>52418881
make a program that plays tetris
>>
>>52419049
Ain't gonna do your homework, nigger
>>
>>52419473
Not my homework and I'm a white cis male faggot.. But yea don't do it idgaf
>>
>>52417814
do the free python course on www.udacity.com (called "introduction to computer science 101") gives you lot of things to practice your skills.

otherwise you can check out these links for exercises and problems you can solve.

http://www.pythonchallenge.com/
http://codingbat.com/
https://leetcode.com
http://rosalind.info/problems/locations/
https://www.codingame.com/ide/3399673591093c1634c5e038d70682093db47ec
http://www.4clojure.com/
http://www.rankk.org/
https://projecteuler.net/about
https://code.google.com/codejam/contests.html
http://www.algorithmist.com/index.php/Main_Page

If you ever want to work with this then remember to learn git and put everything you code on a github repository (including exercises). ESPECIALLY the last link you should try to code all the algorithms and understand them. Will do you a ton of good.

To learn git and how to use a repository like for example github there is a free course for that as well on www.udacity.com. You might also want to check out www.coursera.org where they might have fun python based courses on everything from mathematics (I did a excellent linear algebra course there based on python) to stuff like game development in it. (it is not the best to develop games in, but a fairly easy way to develop games that runs reasonably well)
>>
>working through chapter 2 of black hat python
holy shit curlies exist for a reason
every time i flip the page I have to wonder just how indented the code is
god damn it's hard to tell what the fuck i am reading when there are no curlies for scope

whitespace as a scoping mechanism looks pretty and sounds nice, but in practice so far I'm finding it's A BAD IDEA
>>
hahaha
python thinks it's so cool because it doesn't ask for parenthesis around its boolean conditions, like so
if something || something else:

but literally you're saving just a single character, it's one ":" versus a "( )" pair
whatevs
>>
>>52417891
rolling dis
>>
>>52417891
rolling again, too easy
>>
Reddit bot that scraps /r/nbastreams and other streaming subreddits for links for my favorite teams and sends them to my living room computer with stream info (home/away, quality, etc)

That's what I'm working on at the moment
>>
File: Programming Challenges v3.0.png (1MB, 3840x2160px) Image search: [Google]
Programming Challenges v3.0.png
1MB, 3840x2160px
>>
make a programmable dragon dildo and stick it in your ass with 10 settings.
>>
>>52423670
which of these require GUI ??
Thread posts: 40
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.