Python Projects for Beginners a ten-Week Bootcamp Approach to Python Programming



Download 2,61 Mb.
bet40/200
Sana20.06.2022
Hajmi2,61 Mb.
#681748
1   ...   36   37   38   39   40   41   42   43   ...   200
Bog'liq
Python Projects for Beginners A Ten Week Bootcamp Approach to Python

Challenge Question Solution
There isn’t a definitive solution to making a PB&J sandwich, but I want you to go back and see if you weren’t specific enough. Computers are only as smart as we program them to be, so if you said to put the peanut butter on the bread, it may just interpret it as putting the entire jar on the bread instead. As a developer you need to be specific with your descriptions. Even try rewriting a new algorithm with improved steps.
Weekly Challenges
To test out your skills, try these challenges:

  1. Side Borders: In the Friday project, we ended up creating borders above and below the information printed out. Try adding a star border on the sides as well now.

  2. Researching Methods: We’ve gone over a few of the string manipulation methods that are widely used; however, there are many more; try looking up some and implementing them.

  3. Reverse: Declare a variable equal to “Hello”. Reverse the string using slicing. Try looking it up if you struggle.

Tip you can define a start, stop, and step when slicing.
CHAPTER 3
User Input and Conditionals
Welcome to Week 3! This week we’ll be introducing how to work with user input and making decisions within our programs. These “decisions” are known as branching statements or conditionals. If you think of your life every day, you make decisions based on specific conditions without knowing, such as when to get up in the morning, what to have for lunch, when to eat, etc. These are known as branching statements. The same applies in programming, where we need to have the computer make decisions.
Overview

  • Working with user input

  • How to use “if” statements to make decisions

  • How to use “elif” statements to make multiple decisions

  • How to use “else” statements to make decisions no matter what

  • Building a calculator with decision-making and user input

Download 2,61 Mb.

Do'stlaringiz bilan baham:
1   ...   36   37   38   39   40   41   42   43   ...   200




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish