guys I know im supposed to do this but i've been pulling my hair out for the past 3 hours can anyone help ? I'm trying to create a Object oriented program that will :
Each user starts with a list of numbers from 1 to 6. They then take turns throwing a dice, aiming to throw each number in the list.
Show the numbers of the user each time around the main game loop, showing an X for a number they have already, e.g.Starting
[1][2][3][4][5][6]
after 3 throws:
[1][X][X][4][X][6]
The game is complete when the player gets all numbers in the list.
For starters
[1,2,3,4,5,6]
>>59608779
I'm too lazy to do your homework.
import random
class game:
nums = [x for x in range(1,7)]
def throw(self):
t = random.randint(1,6)
print(t)
self.nums = [x for x in self.nums if x != t]
def isFinished(self):
return (len(self.nums) == 0)
b = game()
while not b.isFinished():
b.throw()
print(b.nums)
name ONE (1) (I) (UNO SENOR) aspect that makes ReactOS inferior to wangblows.
it literally only supports out of date applications you mongoloid
2001 called
they want their OS back.
>>59608771
>Muh up to date cloud data mining features
fuck off faggot you have no need for the latest shit. there hasn't been a single application post 2010 that has had improvements.
Shekels , edition.
Previous Thread >>59603335
>Not sure what private trackers are all about?
The mission of /ptg/ is to promote the highest possible standards of tracker disservice by providing members with opportunities for shitposting development, by recognizing tracker drama competence through examinations and by advancing the interests of its members.
>Have a question?
Feel free to ask and don't bother reading the wiki
>WIKI
https://wiki.installgentoo.com/index.php/Private_trackers
>IRC
#ptg irc.rizon.net 6697/9999 SSL only
Use >>>/g/ptg as a link to find the /ptg/ thread.
Remember the following:
>Staff read & post in these generals.
>This is a thread for educational purposes only. Don't offer or ask for invites.
>Staff may pretend to be normal users asking for invites and when you invite them, they ban you for inviting strangers.
PTG DISCORD
https://discord.gg/hrZ2g
Was APOOLOO seized?
>>59608677
Cucked by DON
>BREAKING NEWS
• Chinese government policies on international trade causes Taobao agent MisterTao to call it quits >>59607766 unsure what these new policies are or if other Taobao agents are affected and what this might mean for the future of chink shit (taobao?) purchases.
>News
• AliExpress 7th Anniversary Sale starts in 10 hours, a quick rundown on what's going to be on sale - OneOdio Headphones >>59553701 the following Xiaomi phones will go on sale Redmi Note 4 Global (EU anons take note) for $150 and the Note 4X for $144, Redmi 4X $112 >>59605779 also on sale Oukitel U16 Max $110 and the Oukitel K6000 Pro $133 https://sale.aliexpress.com/__pc/7thphones.htm
• Update on anon's weed, its stem is a little thin >>59600520 tries to fix it with tooth picks and tape >>59600860 >>59602206
• Anon reviews the Pimax 4k VR headset >>59600939
• Anon needs help with his new Megir watch >>59601366
• Anon is excited at the prospect of his Monks arriving when he gets home >>59602875 they don't >>59606737
• Anon picks up his new Zircons from the post office >>59602738
>>59603588
• Anon gets a card holder >>59603818
• Anon hopes his hybrids pros last longer than the first hybrids >>59604010
• A lot of anons cant login to AliExpress, try making a exception in your adblocker >>59604019
• Anon receives some "useless crap" >>59604301 >>59604419 arduino seems ok >>59604653 >>59605151
• Anon's fav knife is the Sanrenmu 7010 >>59605564
• Battery arrives dented >>59606230
• Anon gets home to a autism spinner on his doorstep >>59606577
• Anon tries out some copy Spinfits >>59607148
Previous thread >>59600081
first for anime
In /csg/, we discuss the cheap shit you see on Gearbest, Taobao, AliExpress, Banggood, eBay and similar sites.
>IRC channel
https://qchat.rizon.net/?channels=/csg/
#/csg/ on rizon
>Discord link
https://discord.gg/zP789wR
>Chink Shit Randomiser
http://chinkshit.xyz/random/
>Chink Shit Wiki
https://wiki.installgentoo.com/index.php/Chink_shit_general
>Chink Shit Infographic v1.4
https://my.mixtape.moe/aijpuk.jpg
>Chink Shit Infographic "Eiaosi's a Shit Edition"
http://chinkshit.xyz/infographic.pdf
aws linux cloud support engineer interview this week, does anyone have any tips or experience? Thanks
Tell em it's GNU/Linux.
tru
Ask them why they mine so much data.
Besides gayming, where will virtual reality end up in the next 3-10 years?
Will it replace day to day synapse functions in our brains?
>>59608481
>Besides gayming
If by VR you mean strapping a screen to your eyes, it flopped even for gaming retard. VR will not be in gaming in the next years. VR will not be.
>>59608699
How truly uneducated you are.
Vr is only getting bigger, OP, with many more applications than gaming. For example, they are using VR to successfully treat soldiers with PTSD.
Porn duh
I bet all the tranny lovers are going to love the sensation of a cock hitting the back of their throat
Anyone knows how to overclock dell latitude e6330?
>>59608423
>overclocking a laptop
Stop it. Sell it if its not good enough for you, and then go build a desktop.
>>59608423
Laptops generally can't be overclocked. The BIOS doesn't allow it, the CPU inside doesn't allow it. You can't.
>>59608443
This.
You're looking at something that only works on 10% of laptops or less, it will make your battery last 2 hours, you may overheat and throttle.
Build a desktop dipshit
Can we discuss AI, technology in general, and the future?
It kind of feels like we're on a precipice, and things will keep changing, faster and faster until we fall.
>>59608370
What the fuck are you talking about?
True A.I. will never be created because it will only ever respond to external stimuli. No matter how complex the logic behind that response is, it can never posses free will which is endowed to humanity by almighty God and unable to be replicated by man. Fag.
>>59610239
Yeah the two hour gap indicates that well enough.
>>59610260
What does the future hold? Is AI going to evolve into some kind of skynet. Will we be directly connected to the internet via some brain/internet interface at some point? Will we regular consumers be given access to future technologies, or will only the rich horde it? Will today's ways of thinking be left in the dirt?
Basically, what's next
>"open source your projects" they said
>"it'll impress employers and they'll hire you" they said
Pajeet and Xi Ming are probably stealing my code now and I still have no job.
>>59608352
h-has anyone seen the github mods on licenses?
who the fuck cares? i steal 3D assets and make sfm porn which gives me a higher income than my stem peers who work twice as hard. the world works on supply and demand.
>>59608388
Fucking Jewish swine >>>/gas/
what are some must have android apps /g/ ?
A browser would be nice
GNU+Icecat
>>59608484
Dolphin browser
I only have a 128GB SSD and I need to dual buut OSX/Windows
What's the best way to manage space when you have such a small SSD?
>>59608259
Get more space if you need more space. If you don't need more space, partition what you have.
>>59608271
im talking more in terms of should i use an external hd, cloud storage etc. I download a lot of movies (and delete them) and it sucks not being able to have enough space to download big rips (10gb+)
>>59608259
SSDs use RAM rather spinning disks, you know that right?
Just visit www.downloadmoreram.com and download as much as you need
Best VPN in your opinion? AirVPN seems good
Stop advertising.
>AirVPN seems good
Then use it. Fuck off. Nobody bump this.
>>59608064 /thread
I use nordvpn for watching porn and I paid almost nothing with coupon code. It's decent.
Where could one possibly get about 100 copies of Windows Vista in their packaging as cheaply as possible? I don't care if the serial keys work or not. I just need the packaging and the cd's and cases inside to be intact.
I really, really hate Windows and especially Vista is the pinpoint of my hatred. I've had a lot of stress lately and I have come up with a way that will definitely make my day.
>>59608032
If you hate Windows why do you want to buy so much product?
>>59608063
So I can play baseball with them
>>59608604
>Buy MS product that they make money on
>Smash it up
>MS still makes their money
>You do nothing to hurt the OS Jew
>End up costing yourself money and time
You're sure going to show them!
Previous thread
>>59554469
>Discord
https://discord.gg/wdg
>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat
>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/
>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow
>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks
>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md
>Useful tools
https://pastebin.com/q5nB1Npt/ (embed)
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs
>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/ (embed)
>How to get started
http://pastebin.com/pDT82mQS (embed)
http://pastebin.com/AL6j7GEE (embed)
>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
First for PHP
What's the best memorystore to use for session management with node.js? Redis? I've previously just used noSQL databases as my "store" before and have yet to have any performance problems with them. Is redis just a meme?
>>59608000
trips for truth
i'm sure i'll just get verbally berated for even asking, but i'm stuck on this one query for an assignment i'm doing, and I just cannot figure it out for the life of me..
Here the tables provided for the example:
http://www.imagebam.com/image/42a61e540457956
This is the request I must write a query for:
List the total dollars for orders, grouped by month
Thanks for the help in advance if one individual does take the time to respond
I feel like you're question might be a little too vague for me to answer but are you just asking to get like
Sel extract(month from(o.orderdate)),
Sum(od.quantity * p.price)
From
Orderdate o
Join orderdetails od
On o.ordernumber = od.ordernumber
Join products p
On p.productid = od.productid
Group by 1
Order by 1
Since no one else seems to help I hope this is of use
>>59607899
>writing actual SQL
>not using object-relational mapping
I'm not doing your assignment, but I'll give you a head start.
You need to find a function to convert your OrderDate column to a year-month representation. The exact syntax is engine dependent, so look up how to get month and year from date in whatever engine you're using. It could be as easy as select month(OrderDate), year(OrderDate). The rest is just joining everything up by primary key.
The end result should look like:
SELECT
{date function} AS Month,
SUM(Price * Quantity) AS Total
FROM
{tables and joins}
GROUP BY
{date function}