Python 6 - Mr. Husch

Python 6 - Mr. Husch

PYTHON 6 MR. HUSCH OBJECTIVE Practice more lines of code KEEP DOING YOUR ERROR LOG WHAT DOES THE % SIGN DO IN THE CODE WE ARE ABOUT TO LOOK AT? %r is not on that chart, why not? %r is an unambiguous string, something that may need to change formats as it is reading. Traditionally you would use %s for a string, but if %s is not defined it will allow

you to use %r in place of it. I do not know why this lesson wants us to use %r instead of %s, both should work the same with one difference in the final run code. Format Symbol Conversion %c character %s

string conversion via str() prior to formatting %i signed decimal integer %d signed decimal integer %u unsigned decimal integer %o octal integer

%x hexadecimal integer (lowercase letters) %X hexadecimal integer (UPPERcase letters) %e exponential notation (with lowercase 'e') %E exponential notation (with UPPERcase 'E')

%f floating point real number %g the shorter of %f and %e %G the shorter of %f and %E ENTER THE FOLLOWING CODE: SAVE AS LASTNAME_PYTHON6 QUESTIONS: ANSWER IN YOUR JOURNAL FOR QUESTION 3 YOU WILL NEED TO EDIT THE

CODE. 1) What changes from the code to the display in the one, two, three, four sequence? 2) What are parentheses used for in this code? 3) What changes to the code if you switch %r to %s? Log any errors and do not repeat them next time WE NOW HAVE A LITTLE BASELINE, FOR THE REST OF CLASS WORK ON THE FOLLOWING WEBSITE. https://www.codecademy.com/learn/python

Recently Viewed Presentations

  • Warm up: What are some necessities in life? (What do we need ...

    Warm up: What are some necessities in life? (What do we need ...

    Accessory A. Something that adds attractiveness or usefulness B Someone who aides a lawbreaker, but who was not present at the crime The black, floral headband is Kristen's favorite accessory. When Joe let Emily copy his homework, he became an...
  • La famille - WordPress.com

    La famille - WordPress.com

    C'est que Françoise Mallet-Joris a le don de préserver le frémissement de ses émotions aussi bien que l'ironie du regard critique qu'elle pose sur ses proches et ses semblables, avec un talent d'une rare fidélité au naturel de la vie....
  • Religion, Philosophy and Ethics  Revision Guide  There are

    Religion, Philosophy and Ethics Revision Guide There are

    Shi'a Muslims have the "Ten Obligatory Acts". Living the Muslim Life . Hadud. the worst crimes: murder, blasphemy, theft, adultery. Situation Ethics. Decision-making based upon the circumstances of a particular situation, and not upon fixed Law.
  • PSY 368 Human Memory Memory Forgetting cont. &

    PSY 368 Human Memory Memory Forgetting cont. &

    We'll come back to implicit tasks in a couple of weeks. * Name all the seven dwarfs. How difficult is the task? ... of the seven dwarves Grouchy Gabby Fearful Sleepy Smiley Jumpy Hopeful Shy Droopy Dopey Sniffy Wishful Puffy...
  • wiki.ivoa.net

    wiki.ivoa.net

    USER LAYER. RESOURCE LAYER. USING. SHARING. VO. CORE. PROVIDERS. 20120521. IVOA Architecture. D. A. T. A. A. C. C. E
  • COURAGEOUS LEADERSHIP: WHAT DOES IT MEAN AT KANSAS

    COURAGEOUS LEADERSHIP: WHAT DOES IT MEAN AT KANSAS

    Sojourner Truth: Abolitionist and Feminist. Truth is powerful and it prevails. If the first woman God ever made was strong enough to turn the world upside down all alone, these women together ought to be able to turn it back,...
  • Ethical Theories - About people.tamu.edu

    Ethical Theories - About people.tamu.edu

    Ethical Absolutism: one set of moral values applies to all people and cultures Plato Cultural Relativism: Moral values are relative to one's culture; there are no universally held values Sextus Empiricus Montaigne Moral Skepticism: there are no known absolute moral...
  • Bees to Flowers - Seed Learning

    Bees to Flowers - Seed Learning

    the government department that collects taxes on goods bought and sold and on goods brought into the country, and that checks what is brought in. Vocabulary. driver's license. n. ... Bees to Flowers Last modified by: Katie Jeon ...