[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
I am relatively new to python and coding...
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 40
Thread images: 4
File: python.png (80 KB, 1000x1000) Image search: [iqdb] [SauceNao] [Google]
python.png
80 KB, 1000x1000
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 (378 KB, 1450x1080) Image search: [iqdb] [SauceNao] [Google]
1431524483157.png
378 KB, 1450x1080
>>
>>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 (36 KB, 356x267) Image search: [iqdb] [SauceNao] [Google]
1406918696432.jpg
36 KB, 356x267
>>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
>>
>>
make a programmable dragon dildo and stick it in your ass with 10 settings.
>>
>>52423670
which of these require GUI ??
Thread replies: 40
Thread images: 4
Thread DB ID: 424623



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

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

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 shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.