[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 know this is a stupid thing to ask but can someone help 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: 14
Thread images: 2

I know this is a stupid thing to ask but can someone help me with my computer programing hw, i just need a program using python that creates a magic 8 ball, I will give moarrr details if someone actually wants to help. I will also do a favor for u depending what it is,
>>
File: 8ball.png (15KB, 218x576px) Image search: [Google]
8ball.png
15KB, 218x576px
>>201851
>>201851
> i just need a program using python that creates a magic 8 ball
Sure! That's way easy. I just knocked one up in thirty seconds.
>computer programing hw
Ah.

I'm happy to help you with your homework, but I'm not gonna do it for you.

Go give it a try, and when you have a specific question, ask it here and I'll answer.
>>
>>201935
I've been trying but desu I don't know much about python. pls help anon, I can't even start it. I'm stupid.
>>
>>201940
did desu correct to desu? Did I accidentally type desu? Either way kek
>>
>>201935
U must be a teacher, don't worry the class will never matter irl but if I get a bad score, it'll fuck my gpa.
>>
>>201940
>>201941
Yeah, desu corrects to desu.

>>201940
>I've been trying but desu I don't know much about python
This is what your schoolwork is meant to be sorting out, no? No course has ever set homework it hasn't first explained how to learn to do.

>>201940
>I can't even start it.
Which OS?

If you can't get it set up, go use the version they provide in the lab.
>>
>>201947
wait, are u my teachr?? why are u on 4ch?I have the pseudocode done. I just don't know syntax for Py. I meant desu corrected to desu.
>>
desu =desu
>>
Is there a switch case in python?
If so, random number gen, right?
>>
>>201952
yes
>>
t b h=desu
>>
>>201952
>Is there a switch case in python?
Nope!

Python is a high-level language; you let the compiler write low-level control flow like that.

Make a list literal, then call random.choice() on it.
>>
>>201956
I should just go back to /b/.
>>
>>201851
import random

choices = ['Yes', 'No', 'Maybe']

# python3
print(random.choice(choices))

#python2 (fuck python2)
print random.choice(choices)

Use this as a base. It's this simple.

>>201946
With that grammar, I wouldn't worry about it.
Thread posts: 14
Thread images: 2


[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.