• Breaking News

    Monday, December 4, 2017

    How can I start contributing to GitHub projects as a beginner? learn programming

    How can I start contributing to GitHub projects as a beginner? learn programming


    How can I start contributing to GitHub projects as a beginner?

    Posted: 04 Dec 2017 11:15 AM PST

    So I have a few semesters of school left and am looking to get some actual coding experience outside my school assignments. I have done a couple projects using github for school, but they really only covered the basics (commits, version control, etc.). Is there any resources or tutorials out there that show how to find projects that are beginner friendly, and the proper way to commit code to them?

    submitted by /u/Hash43
    [link] [comments]

    To self taught developers: What is your strategy for learning data structures and algorithms?

    Posted: 04 Dec 2017 07:36 PM PST

    Hello all. I've been trying to study for a front end developer path since early 2016(currently an English teacher in South Korea.) What is your strategy for studying the data structures and algorithms that many companies seem to interview for? I'm currently reading the Cracking the Coding Interview book, and it's pretty eye opening. Is there a plan that you've seen that has worked for self-taught developers? I saw that Coursera has a data structures / algorithms specialization, but I'm a little intimidated by it because of the math induction requirement(I'm not strong in math.) My thought is to list out all the ds / algos, study them via random resources I find on google, and then try to reinforce them with HackerRank challenges since they seem to have specific categories for data structures / algorithms. What do you think?

    submitted by /u/capozzic1
    [link] [comments]

    How can I scrape information from a list of web pages that all have similar structure?

    Posted: 04 Dec 2017 10:07 PM PST

    I have a series of 179 webpages in an array:

    https://wiki.lineageos.org/devices/A6020/ https://wiki.lineageos.org/devices/addison/ https://wiki.lineageos.org/devices/angler/ 

    etc...

    I would like to scrape each one for information in the table, for instance, the amount of RAM. Using JavaScript to select the strings I need on the page will not be a problem. But how do I get all 179 pieces of data in a workable format that I can easily add to a spreadsheet?

    My plan after I figure this out would be to rerun the program for every piece of data I want (RAM, release date, etc...) but if you have a better suggestion, please let me know.

    submitted by /u/da_chillest
    [link] [comments]

    [C++]How can I get better at making Classes?

    Posted: 04 Dec 2017 07:22 PM PST

    TLDR: I have no problem reading or using classes others have made, but I have a hard time creating my own from scratch. How can I improve?

    Im a senior in university and I would say im pretty good at C++ compared to my classmates when it comes to writing a program for projects but I have one weak point and I dont know how to improve on it.

    Im pretty weak at writing my own classes from scratch. If im given code with classes already in it, or with classes started I have no problem reading/using them. But whenever I write code 100% from scratch I just default to structs/functions. Are there any tips that I could use to get more used to making my own classes?

    submitted by /u/TheBestYet91
    [link] [comments]

    I'm a complete beginner and i want to learn programming.

    Posted: 04 Dec 2017 03:24 PM PST

    I know this has probably posted ad nauseam in this subreddit. I'm 25 years old and my interest in programming has peaked as of late, which mostly comes from gaming but I also have ideas for computer projects.

    I know it's better to get in with an idea of what to do to start, but i want to learn both for fun and to figure out what i wish to figure out what interests me in the world of programming.

    I thought about starting with Visual Basic.NET 2017 since I figure it would be most useful for Windows and read that it's simple to learn.

    But like most everyone who makes these posts, I barely know where to begin and how to go about coding (any info for VB.NET tutorials would be cool).

    What should i do to get in the mindset of a programmer and how should i approach this?

    submitted by /u/gammaray12
    [link] [comments]

    [Question] How are mods made?

    Posted: 04 Dec 2017 12:05 PM PST

    I'm really into computer science and will start my course next semester. My question is, how are mods made?

    • For example, I know that sometimes you need to reserve engineer but is needed for all games? If I wanted to just create a script mod for, let's say, GTA SA single player, how would one do that? Are there certain programming languages which are mostly used?

    • For online games, like roblox/fps games, does it require the same procedure?

    • How does python stand in the modding community?

    Thanks in advance

    submitted by /u/jug2112
    [link] [comments]

    Good programming podcasts ?

    Posted: 04 Dec 2017 02:10 PM PST

    Hi everyone, i'm looking for some good programming podcasts. My favourite language is NodeJS, and i'd like to know more either about this language or about programming world (AI, which languages are the most used, ect..) It would be better if some of them doesn't require me to look at the screen, but it is not mandatory. Thank you for reading :)

    submitted by /u/Gm_cece
    [link] [comments]

    What am I not understanding here regarding the && operator? [Unity] [C#]

    Posted: 04 Dec 2017 11:12 PM PST

    According to Microsoft's documentation, the && operator has a 'short circuit' type of condition checking wherein if an earlier condition returns false, it doesn't continue checking the remaining conditions. So for example;

    if (x && y) 

    If x returns false, y doesn't even get assessed since the outcome will be the same. Sounds great! Especially in games development, since checking certain conditions can be CPU-intensive.

    The problem I'm having is perhaps specific to Unity since I'm aware they sort of maintain their own version of C#/JS/etc. But this is basically what I've got so far:

    void Example() { if (CheckCondition()) { //Do stuff } } bool CheckCondition() { return x == "Hi" && y == 5.0f && z == targetObject; } 

    Let's say that x, y and z should all return false. I'm getting an error wherein it basically says it doesn't know what z is, and thus it appropriately freaks out. That's fine and understandable given the situation, because z should only be what we're expecting assuming that x and y are true in the first place, hence the && operators.

    So my question is, why does it even try and assess z when it's meant to drop-out early since x and y aren't true? Does Unity c# not do the whole short-circuit condition checking thing? Am I missing something? Does it not work if the bool is returned from a function in the way that I'm doing?

    submitted by /u/Nidis
    [link] [comments]

    Know how concepts works but then get lost

    Posted: 04 Dec 2017 11:05 PM PST

    I think this has been mentioned before but while studying programming I can't get over a mental block. Like for example I could know what a while loop does and what an array does but if you told me to print out the sum of all items in an array I find out I still need google to help.

    I've only been learning for a week( I tried learning to program before but I quit) But I want to know if this block goes away with enough practice

    submitted by /u/Kuzonite
    [link] [comments]

    Making a website scanner that will email me.

    Posted: 04 Dec 2017 10:37 PM PST

    Hi everyone, I'm really stuck on where to even start. I want to make a program that will email me when a new listing (that meets certain criteria) appears on a website.

    Any info would be much appreciated!

    submitted by /u/mentalautist
    [link] [comments]

    Reached a state upon where I don't know where to move on further

    Posted: 04 Dec 2017 03:56 PM PST

    Hello. I am new here and I hope I can write about this in this subreddit. This might be a bit long, but it's quite necessary in order for me to show you how I'm stuck without knowing what to do.

    I'm into programming, I know lots of basic stuff already like how computers work, what's binary/hex/octal/etc, I know at least 10 programming languages (to mention them by name, not to code in them), I know the differences between those languages.

    Since summer I've been in state of depression regarding programming; I literally didn't continue nor I learned any of languages for the whole 6 months from summer up to until now. I simply lost all of motivation for some reason.

    I'm fluent in Lua, I know the basics of C, C++, I know SQL, I forgot Python, and I can do stuff in Javascript/CSS/HTML/PHP with some googling (not really fluent though, but with googling i can achieve results).

    This might sound like an insane idea (because it is since im unskilled) but I've been trying to find a way in order to manipulate GTA 5 Singleplayer from my external C++ program. I've tried various of stuff, not much results, I managed to inject a dll into it but what's the point of that since I don't know how to trigger any functions from my dll to game. Then I've realized that in order to even get anywhere with this goal of mine I would need to learn reverse engineering, and in order to do that, I would need to know stuff like which memory addresses are static, how they operate, how to do stuff on them in C++ and so on, and in order to do all of this (including reverse engineering) I need to learn Assembly.

    So basically most of my goals seem to be too high for me, I was very well aware of that, but I thought i could at least do a little part of it, and keep doing little parts until it turns into something, but whenever I'd go to do something in any project, it would just require me to have more knowledge of something else beforehand to do this project. It sucks.

    So I went simpler. A Music Player. It should consist of a window, some buttons and click handlers. I got to the part of creating window, and that's it. GUI Problems. I could have made buttons with Windows Form thingy, but that's really ugly. I wanted to make my own buttons, in my way I'd draw a rectangle, and a text over it, and it'd be a button. But even to draw a text or a rectangle was a huge issue for me, and everywhere I looked, the code to do that was too complex. Like to draw a text once I had to have a 50 line function..like wtf. Then I ran into stuff like Qt, but even though that would probably give me results, it's again causing a problem: I'd need to spend months learning it, and besides I'd like to make a GUI myself, I could have some other framework which just gives me ability to draw rectangles and text and images and lines, and I'd be good to go, but it was never that simple.

    Now this was mostly about C++. C++ even though I find it hard as f... it has best performance and it's always calling back to me because of that. Probably languages such as Python would be much more offering with libraries and stuff like GUI, but what kinda distracts me from other languages than C++ is the fact that they'll never be as fast as C++. There's a possible solution to my C++ GUI problem, by using CEF. However I have no idea how to integrate it and use it.

    This is a bit long, I'll just mention some other languages and add a comment what i think about them.

    Assembly - hard af but could help in future to understand memory and to reverse engineer, but still it requires lot of time for me to sacrifice in order to learn it

    Java - while it's most popular or demanded language, I don't really know what's all the fuss about. I know it's cross platform, and I'm not offending the language, I just don't know what are it's extents, and does it compile to .jar or .exe? if .jar then how do i run it? etc questions

    Python - simple and great language, however compared to other languages, it lacks performance, and it's not really attractive to me.

    HTML/CSS/Javascript/NodeJS/PHP/SQL - most of these are used for web development, while they are nice and easy to code, I'm not interested into making websites.

    C# - powerful language, similar to java syntax/style, used for scripting i think and little bit easier than C++, but I'm still trying to find a point of it what I could do with it

    Dunno if I left out any other language but this is basically it regarding languages. I'm feeling sad because other languages aren't as fast as C++ is, and I can do basically nothing with C++ because in order to even do something simple as draw a text, I need to use a whole huge library for that and spend next few months learning that library just to understand the code why it's written like that in order to e.g draw a text. I can do console programs in C++ but that's boring af.

    In the end, I'm not sure anymore if I'm underestimating other languages way too much, and if I've forgotten the fact that in order to learn something it always does take at least couple of months to do so. But even so, it makes me sad that even to do something just as simple as a Music Player, that I have to spend learning something else (e.g framework) for a few months before I can even make Music Player. I lose motivation to make Music Player by then.

    Sorry guys for this really long post, I just don't know what to do, what to think, what to learn... all I wanted originally is to e.g set money to a certain value in GTA 5 just from my C++ code by editing memory,... But meh, all I want to start is too hard and I'm stuck to boring exercises.

    Thank you guys for reading, I apologize once more for a such long post, I just don't know what to do.

    submitted by /u/x_s8n_x
    [link] [comments]

    How can I automate my use of another computer program using Python?

    Posted: 04 Dec 2017 03:47 PM PST

    Hello everyone,

    A short while ago I wrote a script that automated some boring work for me. The script read an Excel file and then sanitized and formatted the data so that it could be loaded into a program we were testing.

    It was super helpful and helped me avoid hours of tedious copy and pasting.

    I was proud of my work but I always wondered if I could have gone a step further and automated the process of loading the file and maybe even interpreting the results.

    I have no idea where to start though. The program I would like to interact with has a GUI with a menu bar and drop-down menus. To run the program I would have to select things from drop-down boxes and click some buttons. The program was created by my company (so tailored packages are non-existent) and in Java. We use Windows.

    With just Python, would it be possible to write a script to do something like this?

    submitted by /u/SteveDougson
    [link] [comments]

    Which language and where to start?

    Posted: 04 Dec 2017 09:34 PM PST

    Hey!
    I am looking to make a program that automates buying something off a website essentially and am wondering which language to choose. I'm not sure wether to learn Python or Java, I think I'd like to learn both then see where the path of learning leads. My main question is where would I start? I've read upon the FAQ and would like some recommendations as well from the community, anything is appreciated! Thanks!

    submitted by /u/AResselCompany
    [link] [comments]

    Proper path to learn blockchain programming as a complete beginner?

    Posted: 04 Dec 2017 05:48 PM PST

    Hey all, sorry if this is the wrong place to post this, but I'm really interested in blockchain development and decentralized platforms. I've done a little reading on how they work, but I have no idea what the best course of action is to learn how to work with the technology, or if I need to fully master a language before I can grasp this stuff.

    Thanks in advance everyone!

    submitted by /u/LtCupcakes541
    [link] [comments]

    pyautogui click doesn't work in MSI Afterburner

    Posted: 04 Dec 2017 09:28 PM PST

    I'm trying to automate the opening of MSI Afterburner and have it change to a different profile but pyautogui won't click on the msi afterburner window. I don't know why but it doesn't work. The click function works in another part of the code but I have it disabled so for testing purposes. Here is my code:

    import schedule import time import os import pyautogui def Open_Nicehash(): os.startfile('C:\\Program Files (x86)\\MSI Afterburner\\Afterburner-noUAC') pyautogui.moveTo(1720, 390) time.sleep(10) pyautogui.click(x=None, y=None, clicks=1, button='left') '''os.startfile('C:\\Users\\Josh\\AppData\\Local\\Programs\\NiceHash Miner 2\\NiceHash Miner 2.exe') time.sleep(60) pyautogui.moveTo(ScreenWidth/2, 440) pyautogui.click(x=None, y=None, clicks=1, button='left') time.sleep(10)''' pyautogui.FAIL_SAFE = True pyautogui.PAUSE = 1 ScreenWidth, ScreenHeight = pyautogui.size() '''schedule.every().day.at("12:17").do(Open_Nicehash) while True: schedule.run_pending() time.sleep(1)''' Open_Nicehash() 
    submitted by /u/Splitface2811
    [link] [comments]

    Why is CSS such black magic?

    Posted: 04 Dec 2017 09:27 PM PST

    I understand a significant amount or Python and Java. There's concepts I don't understand, but for the most part it makes sense. Yet, when it comes to css I have no fucking clue what I'm doing. Sometimes I do something and it works, the next time I do it, it doesn't work.

    I know that it clearly is just mistakes I'm making, but I wish to be able to code up a decent website. I hate struggling with basic issues like positioning elements. Is there some sort of cheatsheet that makes display, position, and positioning all make sense?

    I have followed plenty of guides: pluralsight, udemy, w3, codeacademy, etc. While I do learn something, it's never a valid solution. Am I just not using the right resources or am I just a complete monkey?

    submitted by /u/Infinitylsx
    [link] [comments]

    [Question] How do I save high scores from every user on Android?

    Posted: 04 Dec 2017 09:20 PM PST

    I'm learning android development and need to be able to save scores from different users. What is the best way to go about this? I learned a bit about how to fetch from the net but I'm stuck there.

    submitted by /u/566663
    [link] [comments]

    How should I design a tablecloth lending database in Microsoft SQL Server?

    Posted: 04 Dec 2017 03:02 PM PST

    So I have to make a database for lending out tablecloths for a class project, can help me with the table structure? I'm just not quite sure how I want to make the tables. I already have color and type tables (ie circle or rectangle shaped), should I make a reference table or just make them foreign keys in the product table?

    submitted by /u/Wacky0_0Gear
    [link] [comments]

    Starting at cyber security

    Posted: 04 Dec 2017 03:00 PM PST

    At the moment Im a little bit young and with no budget to take university or anything like that, but almost all my life i always wanted to learn how to break through stuff in order to know if it could be broke or if it could get stronger. I really want to start now getting knowledge and learn stuff about cybersecurity,programming and in special pentesting. There is so many information on the imternet that i get confused where to start... I would be glad if someone with experience in cybersecurity could give some advise! Sorry for bad grammar, english isnt my main language.

    submitted by /u/Shutdown137
    [link] [comments]

    Is "overflow attacks" possible with javascript?

    Posted: 04 Dec 2017 05:10 PM PST

    hello, I would like to ask if it is possible to implement a "overflow attack" in javascript, I've been making a research about drive-by dowbloads, which for me is very,very,very dangerous. Imagine, just visiting a web will... :(

    submitted by /u/jhave21l
    [link] [comments]

    Feeling negative when I am planning on learning to program.

    Posted: 04 Dec 2017 11:09 AM PST

    Hi, my name is Joe and I am 15 years old. My question is, how can I prevent feeling negative every time I want to learn to program? For about 2 years now I have been wanting to learn how to program. Their has been times in this 2 years we're I have been learning python on codecademy, I get fairly far in to the course and enjoy most of it. My issue is though when I get stuck on a question or course I just tell my self I am too dumb for programming, theirs no point my trying and I just get really intimidated by it. After feeling like this for a week or two I stop learning and trying, I just give up. I'll not learn to program for around 2 months and then I'll get some motivation and try and learn again. This just goes in a loop. Is their a way I can prevent this or am I just too dumb for programming? I have heard by a couple of people that you have either got the skill or you haven't, if that makes sense. Sorry if this is a dumb question, I just don't know what to do.

    submitted by /u/jfas02
    [link] [comments]

    [python] Beginner code problem

    Posted: 04 Dec 2017 08:42 PM PST

    I am learning how to use functions. I am writing a program to calculate pay for workers including overtime. When I input numbers that trigger the if/then scenario for overtime pay (hours are over 40) the program works great, but if the hours inputted are below 40 then the program returns "None" instead of doing an easy multiplication. I've provided screenshots below.

    submitted by /u/iRemedyDota
    [link] [comments]

    Best book on C++ for a beginner?

    Posted: 04 Dec 2017 07:54 PM PST

    Hi, I recently got into C++ after learning that it suits my needs better than any other languages. I have learned Python before and am fluent in it. I also learn C# for a short period of time. Which book do you recommend to someone who is starting out learning C++, and also helpful for an expert?

    submitted by /u/broodlinglarva
    [link] [comments]

    I need help with a while loop!

    Posted: 04 Dec 2017 07:38 PM PST

    I need help with two issues. I would like to make this code be within a while loop. And if possible I would like to make it so that if they do the wrong input for the answers, for example, they do yse instead of yes, if will tell them wrong input and ask the question again. Any tips / help is very much appreciated. Thanks!

    import random

    ready =input("Welcome to Pokemon Mind Reader! The game is simple. I chosen my 7 different types of Pokemon. Grass, Fire, Rock, Electric, Poison, Ground, and Psychic, Of these types, choose any pokemon and think about it. I will guess your pokemon from simple questions! Would you like to play? yes/no?")

    types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = types

    while ready == 'yes':

    types_asked = types thetype = False choice = random.randint(0,len(types_asked)-1) typ = input("Is your pokemons primary type a " +(types_asked[choice]) + " type " ) if typ == 'no': types_asked.pop(choice) else: thetype = types_asked.pop(choice) if thetype == 'fire': print("Ooo, FIRE! Blaine is the Leader of this type!" ) fireallfourlegs = input("Does this pokemon run on all four legs ") if fireallfourlegs == 'yes': fox = input("Does this fire pokemon look like a fox? ") if fox == 'yes': VON = input("Does this pokemon have multiple tails? ") if VON == 'yes': ROW = input("Does the pokemon have more than 6 tails? ") if ROW == 'yes': print("You have chosen nintails! ") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif ROW == 'no': print("You haven chosen vulpix! ") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if VON == 'no': print("Then you must be thinking of a weird pokemon") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif fox == 'no': dog = input("Does this pokemon look like a dog with black stripes? ") if dog == 'yes': GOA = input("Does the pokemon have two evolutions? ") if GOA == 'yes': GOA2 = input("Does the pokemon look like a puppy? ") if GOA2 == 'yes': print("You have chosen growlithe!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if GOA2 == 'no': print("You have chosen Arcanine!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif dog == 'no': firehorse = input("Does your pokemon look like a horse? ") if firehorse == 'yes': print("Almost have it") POR = input("Is your pokemons tail a flame? ") if POR == 'yes': POR2 = input("Does your pokemon have a horn? ") if POR2 == 'yes': print('Your Pokemon is Rapidash!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif POR2 == 'no': print("Your pokemon is ponyta") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif POR == 'no': print('The only pokemon remaining is Flareon!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif fireallfourlegs == 'no': firewings = input("Is does this pokemon have wings? ") if firewings == 'yes': COM = input("Is it a legendary pokemon? ") if COM == 'yes': print("You have chosen Moltres!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif COM == 'no': print("Then you have chosen Charizard!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif firewings == 'no': print("Most certaintly an interesting one...") MCC = input("Does this fire pokemon stand on two legs only? ") if MCC == 'yes': magmar = input("Does this pokemon have a duck bill?") if magmar == 'yes': print("You have chosen magmar") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif magmar == 'no': CC = input("Is your Pokemon more red than orange? ") if CC == 'yes': print("Your pokemon is Charmeleon!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif CC == 'no': print("your pokemon is Charmander!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif thetype == 'electric': print("Big Bad Army soldier Lt.Surge is the Leader of this type. He used his pokemon during the war") EOV = input("Is the pokemon shaped like a ball? ") if EOV == 'yes': EOV2 = input("Does the pokemon have a mouth? ") if EOV2 == 'no': print("You have chosen voltorb") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif EOV2 == 'yes': EOV3 = input("Does the pokemon have the ability to explode? ") if EOV3 == 'yes': print('You have chosen Electrode!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif EOV == 'no': POR = input("Does your pokemon have colorful cheeks? ") if POR == 'yes': POR2 = input('Does the pokemon have a white stomach? ') if POR2 == 'yes': print("You chose Raichu!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif POR2 == 'no': print("You chose Pikachu!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif POR == 'no': tofloat = input("Does your pokemon have the ability to fly or hover? ") if tofloat == 'yes': MM = input("Is your pokemon primarily made of metal? ") if MM == 'yes': Magneton = input("Does this pokemon link to multiples of itself once evolved? ") if Magneton == 'yes': print('Your pokemon is Magneton!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif Magneton == 'no': print("Your pokemon is magnemite!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif MM == 'no': zapdos = input("Does the pokemon have wings? ") if zapdos == 'yes': print("You have chosen Zapdos!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif tofloat == 'no': JOE = input("Does this pokemon need a special stone in order to evolve? ") if JOE == 'yes': print('You have chosen Jolteon!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif JOE == 'no': print("Then only one pokemon remains, Electabuzz!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif thetype == 'ground': print("Giovanni is the leader of the ground gym. Did you now he is also the leader of Team Rocket!?") dig = input("Some ground Pokemon love to dig. Does your pokemon love to dig into the ground? ") if dig == 'yes': scales = input("Does your pokemon have scale like armor? ") if scales == 'yes': print("Getting close!") SOS = input("Does your Pokemon have spikes on its back? ") if SOS == 'yes': print("You have chosen Sandslash!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif SOS == 'no': sandshrew = input("Does the pokemon have tiny claws? ") if sandshrew == 'yes': print("You have chosen Sandshrew!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if scales == 'no': DOD = input("Does your pokemon primarily live underground") if DOD == 'yes': DOD2 = input("Is its main form of traveling by digging? ") if DOD2 == 'yes': DOD3 = input("Does the pokemon have many heads? ") if DOD3 =='yes': print("You have chosen Dugtrio!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif DOD3 == 'no': print("You have chosen Digglet!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif DOD == 'no': MOC = input("Does the pokemon have a special type of weapon? ") if MOC == 'yes': MOC2 = input("Does the pokemon have a 'hard head' ") if MOC2 == 'yes': print("Oh, This is one of those lonley pokemon!") MOC3 = input("Does the pokemon need a special time of day to evolve? ") if MOC3 == 'yes': print("You have chosen Cubone!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif MOC3 == 'no': print("You have chosen Marowak!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif MOC == 'no': print("I all ready know it!, but lets just make sure") ROR = input("Does the pokemon stand on all four legs? ") if ROR == 'yes': print("Your pokemon is Rhyhorn!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif ROR == 'no': print("Your pokemon is Rhydon!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif thetype == 'rock': print("Rock Solid! Brock is the Leader of the Rock Gym in Pewter City. His name also happens to be the same as mine!") levitate = input("Is this pokemon one of the very few with the ability to levitate or fly? ") if levitate == 'yes': print("Well this will be easy then!") GOA = input("Does this pokemon have wings? ") if GOA == 'yes': print("You chose Aerodactyl!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if GOA == 'no': print("You have chosen Geodude!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if levitate == 'no': GGG = input("Is the pokemon spherical? ") if GGG == 'yes': print("Ah, one of those three") GGG2 = input("Ill ask again, does this pokemon levitate? ") if GGG2 == 'yes': print("Your pokemon is Geodude") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif GGG2 == 'no': GGG3 = input("Does the pokemon have more then two arms? ") if GGG3 == 'yes': print("You have chosen Graveler!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if GGG3 == 'no': print("You have then chosen Golem!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if GGG == 'no': print('Im getting close!') FPKM = input("Does the pokemon come from a fossil? ") if FPKM == 'yes': FPKM2 = input("Is the shell spiral or flat?") if FPKM2 == 'spiral': print("one more question!") FPKM3 = input("Does the pokemon have spikes? ") if FPKM3 == 'yes': print("You have chosen Omanyte!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif FPKM3 == 'no': print("You have chose Omastar!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif FPKM2 == 'flat': FPKM4 = input("Does the pokemon have scythe like arms? ") if FPKM4 == 'yes': print("You have chosen Kabutops!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif FPKM == 'no': print("You have chosen Kabuto!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif FPKM == 'no': print("Say no more! You chose Onix") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif thetype == 'poison': print("Koga is the Leader of the Posion Gym and master of ninjitsu!!") pfangs = input("Does this pokemon have fangs? ") if pfangs == 'yes': pcave = input('Is the pokemon found inside caves? ') if pcave == 'yes': print('Oh..one of those annoying ones...') pcave2 = input(" Does the pokemon also have wings? ") if pcave2 == 'yes': print("One more question") pcave3 = input("Does the pokemon have a large wingspan? ") if pcave3 == 'yes': print("You have chosen Golbat") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if pcave3 == 'no': print("You have chosen Golbat!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif pcave == 'no': EOA = input("That must mean that this pokemon loves the grass ") if EOA == 'yes': EOA2 = input("Does the pokemon have legs? ") if EOA2 == 'no': EOA3 = input("Does the pokemon have a rattle ") if EOA3 == 'yes': print("You have chosen Ekans!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif EOA3 == 'no': EOA4 = input("Then the pokemon must have a long body and tongue? ") if EOA4 == 'yes': print('You have chosen Arbok!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif EOA2 == 'yes': print('Too easy') NID = input("Is this pokemon a male? ") if NID == "yes": NID2 = input("Can the pokemon be caught in the wild? ") if NID2 == 'yes': print("Then you have chosen the male Nidoran") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif NID2 == 'no': NID3 = input("Must the pokemon be caught in the safari zone? ") if NID3 == 'yes': print("Then you have chosen Nidorino!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif NID3 == 'no': print("You have chosen Nidoking!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif NID == 'no': NID4 = input("Then the pokemon must be a female? ") if NID4 == "yes": NID5 = input("Can the pokemon be caught in the wild? ") if NID5 == 'yes': print("Then you have chosen the female Nidoran") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif NID5 == 'no': NID3 = input("Must the pokemon be caught in the safari zone? ") if NID5 == 'yes': print("Then you have chosen Nidorina!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif NID3 == 'no': print("You have chosen Nidoqueen!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif pcave2 == 'no': KOM = input("Does the pokemon then levitate? ") if KOM == 'yes': koff = input("Does your pokemon expell a gas? ") if koff == 'yes': koff2 = input('Does your pokemon have multiple faces? ') if koff2 == 'yes': print("You have chosen Weezing!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif koff2 == 'no': print("You have chosen koffing!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if KOM == 'no': print("I almost know it!") GOM = input("is the pokemon small? ") if GOM == 'yes': print("You have chosen Grimer") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif GOM == 'no': print("You have chosen Muk! ") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif thetype == 'psychic': print("Sabrina is Leader of the Psychic gym! Don't let her get into your mind") print("Ill make this one quick..hopefully!") mewtwo = input("Is the pokemon a legendary pokemon") if mewtwo == 'yes': print("Welp, theres only one pokemon then, you chose Mewtwo!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif mewtwo == 'no': abra = input("Dose the pokemon have the ability to teleport? ") if abra == 'yes': abra2 = input("Are its eyes normally closed?" ) if abra2 == 'yes': print("You have chosen Abra! ") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif abra2 == 'no': abra3 = input("Does the pokemon use an item to do its attacks? ") if abra3 == 'yes': abra4 = input("Does the pokemon have to be traded to evolve? ") if abra4 == 'yes': print("You have chosen Alakazam!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if abra4 == 'no': print("You have chosen Kadabra!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif abra == 'no': DOH = input("Does the pokemon have a trunk prefer to cause its enemys to sleep? ") if DOH == 'yes': DOH2 = input("Does the pokemon have a trunk? ") if DOH2 == 'yes': print("You have chosen Drowzee!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif DOH == 'no': DOH3 = input("Does your pokemon prefer to use hypnosis? ") if DOH3 == 'yes': print("You have chosen Hypno!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if DOH3 =='no': print("You have chosen Mr.Mime!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif thetype == 'grass': print("hmm...") hasvines = input("Does your Pokemon have vines on/in its back? ") if hasvines == 'yes': vinegroup3ev = input("Does your pokemon have three evolutions? ") if vinegroup3ev =='yes': BIV = input("Does this Pokemon stand on all four legs? ") if BIV == 'yes': print("I almost have it! Last questions!") BIV2 = input("Is it a 1st, 2nd, or 3rd evolution pokemon? (1, 2 ,3)" ) if BIV2 == '1': print('Your pokemon is Bulbasaur!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif BIV2 == '2': print('YOur pokemon is Ivysaur!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif BIV == '3': print('Your pokemon is vensaur!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif BIV == 'no': print("No legs? Now your just making this easy") BWV = input("Does the pokemon mainly look like a plant? ") if BWV == 'yes': BWV2 = input("Does the pokemon look like it has roots for legs? ") if BWV2 == 'yes': print("Told you this one was easy") print("Your pokemon is bellsprout!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif BWV2 == 'no': BWV3 = input('Does your grass pokemon look upside down with its fangs showing?') if BWV3 == 'yes': print('Your pokemon is Victrebell!') types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif BWV3 == 'no': print("Your pokemon is Weepinbell! ") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif hasvines == 'no': print("There's not too many pokemon remaining! ") novinesblue = input("Is the pokemon blue? ") if novinesblue == 'yes': print("I have narrowed it down to three!") novinesblue2 = input("Does your pokemon have only two evolutions? ") if novinesblue2 == 'yes': OOG = input('Oh..And does if have grass on its head? ') if OOG == 'yes': print("You chose oddish!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") else: print("You chose vileplume!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif novinesblue2 == 'no': EOE = input("Does your pokemon have more then one face? ") if EOE == 'yes': EOE2 = input("Does your pokemon look like a tree? ") if EOE2 =='yes': print("You Chose Exeggcutor!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") else: print("You chose exeggcute") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") if EOE == 'no': print("Well, then only one pokemon remains! You chose tangela!") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") elif len(types_asked) == 0: print("Then you must be thinking nothing! ") types = ['water','fire', 'grass', 'electric','rock', 'poison', 'psychic'] types_asked = [] ready = input("Would you like to play again? ") 
    submitted by /u/Brawk17
    [link] [comments]

    No comments:

    Post a Comment