This is just a correction saying that the link in Suggestions and ideas (not IDEs) should have been https://www.tutorialspoint.com/codingground.htm. Sorry about that.
CodingandCars
Friday, August 28, 2020
Monday, August 24, 2020
And the results are...
So. It has been quite a while since I posted on my blog. I have decided I am not only going to post stuff about coding and cars, although I will have quite a bit of content about coding and cars still.
Here's what has been going on this week. Nothing much. OH WAIT, I FORGOT! There is a wunkahead in our house. Wunkahead is a dog from the ICAN program. If you want to know what ICAN is, ask Penny. She will gladly tell you. Don't get me wrong, wunkahead (aka Nugget) is a great dog. She just is, well, a wunkahead. 😜
Coding... I guess you could say I figured out the IDE? I still have no clue how to get all the packages to work, but I have found out that using an IDE helps make it easier to code.
Today's code:
import random
import time
#Magic 8 ball
#Variables
Answers = ['It is certain.', 'Yes.', 'No.', 'I will have to mull it over.',
'Never.', 'Definitely.', 'Of course.', 'Of course not.', 'I think so.', 'Maybe later.',
'Yes.', 'Never.', 'Mmm.', 'No.']
Answer = random.choice(Answers)
print('I am the magical 8 ball.')
time.sleep(0.5)
Question = input('Give me a quesion.')
print('...')
time.sleep(1)
print(Answer)
time.sleep(3)
Friday, August 14, 2020
IDEs again?
Yes, I am going to talk about IDEs yet again. The reason for this is because I think I am starting to get further along with mine! I am continuing to download the packages, and learn further what IDEs are! Apparently, without all the packages, IDEs are just text editors. But now I think I am getting the right packages. Soooooo... why isn't it working? Who knows. All the error messages say stuff like "Your filgum is not engaged in the nemearaton." What?
By the way, I saw a really cool old Porsche today. It was probably 1960s - 70s. And it was in really good condition!
today's code:
import random
import time
number = random.randint(1,10)
print('Guess the number!')
time.sleep(0.3)
guess = input('What is your guess?\n')
time.sleep(0.5)
if guess == number:
print('You win!')
else:
print('Try again.')
Also, I am taking a poll! My question is: do you code at all? And if so, what language do you use? Just post your answers in the comments section! Please participate!
Wednesday, August 12, 2020
Suggestions and Ideas (not IDEs)
Hello, and welcome to my latest post! In this post, I will give suggestions on things to get on your computer or websites to look up, as well as some ideas (again, not IDEs) for what to do with these gadgets. Don't worry, the daily, or postly, code will come out too.
- If you are looking for a good online IDE, okay, so I am talking about an IDE, I suggest https://wwww.tutorialspoint.com/codingground.htm. Is has all different kinds of coding languages, and gives you a sample of each one.
- If you are a beginner and wondering what coding language you should use, the answer is most definitely Python. It has pretty easy to understand code, and you can do some cool stuff with it.
- If you want to get some cool games on your computer, get Steam. Steam itself is free, but almost all the games cost money. What ever. The games are awesome.
- If you are stuck trying to code on Python shell, DO NOT JUST LOOK IT UP!!! People who post things on websites like tutorialspoint or stack overflow are coding gurus who have fancy IDEs and somehow know how to use them. I would much rather ask my dad or somebody else who knows about coding.
- If your stuck trying to find a game on steam, I suggest Roller Coaster Tycoon Deluxe. It's cheap at only six dollars, and while I have never gotten it on Steam, I have had it before and it was a lot of fun.
Tuesday, August 11, 2020
The problem with IDEs
In my last post, I said I got an IDE. I also said I thought it would make my work easier. This was not to be. I have spent probably about an hour now trying to figure out how to use it. I started out by downloading a package that should have made it so I could use Python with the IDE. But nooooooo, I had to download about a million other packages to go along with the one I got. Not that I could figure out how to run the code anyway. So that is my experience with IDEs. they are hard to use.
Also, starting with this post, I am going to give you a sample of code to try. If you have Python already, just try it on that. If not, you can get Python at Python.org or try it out on an online IDE.
#This game created by yahoo0406 (Cedric Rundle)
import time
import random
e = ''
while e != 'e':
print('Welcome to Rock, paper and scissors created by yahoo0406!')
print('In this game, you try and outguess the computer by selecting rock paper or scissors.')
time.sleep(0.5)
names = ['George', 'Clare', 'Daryn', 'Cedric', 'Penny', 'Ben', 'Jess', 'Jack', 'Billybob']
print('Your opponent is', random.choice(names))
time.sleep(0.5)
rpsc = input('Rock, Paper or scissors?')
print('Rock,')
time.sleep(0.5)
print('Paper,')
time.sleep(0.5)
print('Scissors,')
time.sleep(0.5)
print('SHOOT!')
time.sleep(0.5)
comchoice = random.randint(1,3)
if comchoice == 1:
print('Your opponent chose rock.')
time.sleep(0.5)
if rpsc == 'rock':
print('It\'s a tie!')
elif rpsc == 'paper':
print('You win!')
elif rpsc == 'scissors':
print('You lose.')
else:
print('...')
time.sleep(0.5)
print('What was that for!?!')
elif comchoice == 2:
print('Your opponent chose paper.')
time.sleep(0.5)
if rpsc == 'rock':
print('You lose.')
elif rpsc == 'scissors':
print('You win!')
elif rpsc == 'paper':
print('It\'s a tie!')
else:
print(';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;')
print('YOOOOOUUUUU LLLLLLLOOOOOOSSSSSEEEEEE')
elif comchoice == 3:
print('Your opponent chose scissors')
time.sleep(0.5)
if rpsc == 'rock':
print('You win!')
elif rpsc == 'paper':
print('You lose.')
elif rpsc == 'scissors':
print('It\'s a tie!')
else:
print('YOU CHEATED!')
e = input('Press enter to play again or type e to leave.')
#VERSION 1.0
Note: Online IDEs are not as hard to use as IDEs that you download.
Monday, August 10, 2020
Coding and cars?
Correction
This is just a correction saying that the link in Suggestions and ideas (not IDEs) should have been https://www.tutorialspoint.com/codingg...
-
Yes, I am going to talk about IDEs yet again. The reason for this is because I think I am starting to get further along with mine! I am co...
-
So. It has been quite a while since I posted on my blog. I have decided I am not only going to post stuff about coding and cars, although...
-
Hello, and welcome to my latest post! In this post, I will give suggestions on things to get on your computer or websites to look up, as we...
