VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
12 Beginner Python Projects - Coding Course

12 Beginner Python Projects - Coding Course

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Improve your Python skills by following along with 12 different Python project tutorials. - Course developed by Kylie Ying. Check out her YouTube channel: https://www.youtube.com/ycubed
Date: 2022-03-14

Comments and reviews: 10


May I please get someone's help on my code for hangman?
Firstly, I get a single --- for my current word, instead of showing multiple --- for the length of the entire word.
Secondly, my program doesn't end even after I have correctly guessed all the letters of the word.
import random-
from words import words-
import string-
computer_word = random.choices(words)-
computer_letters = set(computer_word)-
def hangman():-
alphabet = set(string.ascii_lowercase)-
used_letters = set()-
while len(computer_letters) > 0:-
print(-You have used these letters: -,- -.join(used_letters))-
print(computer_word)-
user_letter = input(-Please guess a letter of alphabet: -).lower()-
print(computer_word)-
print(computer_letters)-
word_list = [letter if letter in used_letters else --- for letter in computer_word]-
print(-Current word: -, - -.join(word_list))-
if user_letter in alphabet - used_letters:-
used_letters.add(user_letter)-
if user_letter in computer_letters:-
#remove letter from computer_letters -
computer_letters.remove(user_letter)-
elif user_letter in used_letters:-
print(-You have used this letter before.-)-
else:-
print(-Please try again.-)-
if len(computer_letters) == 0:-
print(-You won!-)-
hangman()

reply

Thank you so much for this tutorial! I am fairly new to Python so these project are super helpful for me learning the basics. I was wondering if anyone else ran into problems with the Tic Tac Toe game. I am able to input my first number, but after that, I keep getting an error where it says NameError: name 'value' is not defined (this is the last part of the error, it actually also flags 3 different lines for problems). However, when I check my code with what is in the tutorial and the posted github link, it is the same. I'm not sure if I'm missing something. If anyone with a little more experience can point me into a direction for fixing this, I'd appreciate it!
reply

The hangman was not very well explained and I could never get it to work. You seemed to have glossed over some key parts and I failed to understand much of what was going on in that exercise. Not even close to getting this one to run, I have no errors, but nothing is ever printed to the console. very confusing, poorly explained. Have to say, the further this video goes, the less I think it is for beginners, little to no explanations given, plenty of expectations that the user already understand the language very well.
reply

So...This is labeled a beginner course and I can only assume most people watching are complete beginners. Makes sense, right?
Why, then would you go from a simple Madlib game to creating a function without ever having mentioned the concept of a function?
I get that some people might know what a function is; me included, but if you're going to label your video as beginner, then the content should reflect as such.

reply

#for computer guess
import random-
def computer_guess(x):-
our_number=int(input(f'give a number between 1 and -x-:'))-
cguess=0-
while cguess!=our_number:-
cguess=random.randint(1,x)-
if cguessour_number:-
print(f'heay computer guess again your guess -cguess- greater than my number')-
print('hurreay!you guessed it correctly computer:')-
computer_guess(50)

reply

This is so hard to follow and half the syntax used doesn't function the same way for me as it does for her. She doesn't actually explain any of the functions she uses properly either. There's too many other better tutorials out there to spend time watching this one.
reply

Hi there, this is a super helpful video. I have a question tho, for Rock Paper Scissors, is there a way to loop through? Such that when the user gets -Its a tie- or -You lost-, the game immediately restarts and gives them the option to make an input again.
reply

This is so great! thank you, love your videos!
Just one thing: It would be great to have an explanation of what the project is about before you explain how to do it, so it is easier to start working on the solution, and then watch how you did it. :)

reply

---do you know you can seat at your comfort zone and monitor your partner activities remotely in your phone
If you are interested in that the name above call help you to archive that....

reply

---do you know you can seat at your comfort zone and monitor your partner activities remotely in your phone
If you are interested in that the name above call help you to archive that....

reply
Add a review, comment






Other channel videos