
Python Project Tutorial - Your First Python Project
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Majdi
Man you are Awesome!
I did your tutorial and make it a bit interesting by add loop between 3rd & 4th choice question..
choice4 = --
while True:
choice3 = input(-behind the house you find a river, do you swim across or go around? (across/around) -).lower()
if choice3 == -across-:
print(-You reached to other side-)
print(-Gongrats! YON WON.-)
break
else:
choice4 = input(-Do you know how to swim? (yes/no) -).lower()
if choice4 == -yes-:
print(-Swim to Win!-)
else:
print(-you can't go anywhere! you lost...-)
break
reply
Man you are Awesome!
I did your tutorial and make it a bit interesting by add loop between 3rd & 4th choice question..
choice4 = --
while True:
choice3 = input(-behind the house you find a river, do you swim across or go around? (across/around) -).lower()
if choice3 == -across-:
print(-You reached to other side-)
print(-Gongrats! YON WON.-)
break
else:
choice4 = input(-Do you know how to swim? (yes/no) -).lower()
if choice4 == -yes-:
print(-Swim to Win!-)
else:
print(-you can't go anywhere! you lost...-)
break
reply
FamEliteGamer
If you only want them to be able to input specific things like an int or book or float
Age = int(input(-What is your age? -))
Decimal = float(input(-Define a decimal: -))
torf = bool(input(-Is that True or False? -))
And if the specified data type is not typed it will send back an error causing the program to stop, so they cant type jimmybobjr for age or nahh for true or false
reply
If you only want them to be able to input specific things like an int or book or float
Age = int(input(-What is your age? -))
Decimal = float(input(-Define a decimal: -))
torf = bool(input(-Is that True or False? -))
And if the specified data type is not typed it will send back an error causing the program to stop, so they cant type jimmybobjr for age or nahh for true or false
reply
itech
can we see what the game looks like? I'm trying to see the outcome so i can understand the input....if that makes sense. I'm a very visual learner and would love to learn python but again, i'm a beginner who needs to see the end result to understand what i'm building. Can you help? Can anyone?
reply
can we see what the game looks like? I'm trying to see the outcome so i can understand the input....if that makes sense. I'm a very visual learner and would love to learn python but again, i'm a beginner who needs to see the end result to understand what i'm building. Can you help? Can anyone?
reply
Satyam
not getting further option in output as river/house when i am taking tim -around-. its just showing -You went around and reached the other side of the lake.- but in video you are getting the option as river/house while going -around- also you are winning the game with same code why not me?
reply
not getting further option in output as river/house when i am taking tim -around-. its just showing -You went around and reached the other side of the lake.- but in video you are getting the option as river/house while going -around- also you are winning the game with same code why not me?
reply
Robert
I have an older computer and it's slow. Buying a new computer would be a challenge right now, but could I buy a new external hard drive and work to learn python? Also eventually learn either Unreal engine or unity.
reply
I have an older computer and it's slow. Buying a new computer would be a challenge right now, but could I buy a new external hard drive and work to learn python? Also eventually learn either Unreal engine or unity.
reply
Breandan
How would you add a loop to each step, so that if they lost it will ask if they want to try again, and depending on the ans, it would either run the program again or end the sys?
reply
How would you add a loop to each step, so that if they lost it will ask if they want to try again, and depending on the ans, it would either run the program again or end the sys?
reply
k-nt
If they type a word in the age input, the program fails. Is there a way to simply tell them they have to use a valid age if they tried doing that. Opposed to the program stopping.
reply
If they type a word in the age input, the program fails. Is there a way to simply tell them they have to use a valid age if they tried doing that. Opposed to the program stopping.
reply
Ms
Every beginner should watch this video first even before learning python from any other tutorial I would say. Thanks Tim and freecodecamp for such a wonderful video!!-
reply
Every beginner should watch this video first even before learning python from any other tutorial I would say. Thanks Tim and freecodecamp for such a wonderful video!!-
reply
sisir
32:40 i have assigned double quotes to the integer 18. It worked perfectly fine.
Is that a good habit or a bad way of code?
Someone please guide me. Thanks.
reply
32:40 i have assigned double quotes to the integer 18. It worked perfectly fine.
Is that a good habit or a bad way of code?
Someone please guide me. Thanks.
reply
Mahbub
): How can you go so fast and exact coding? I want copy you but it's lot's of error......
Thanks for give me nice tutorial.
reply
): How can you go so fast and exact coding? I want copy you but it's lot's of error......
Thanks for give me nice tutorial.
reply
Add a review, comment
Other channel videos















