Python Learning _ First day _20161003

Source: Internet
Author: User

Today is the third day of the Great Motherland Festival of 2016 and the first day of my formal study of Python.

Today I learned the if judgment and the for loop mainly.

=============================

#if判断
A = 10
For I in range (10):
num = Int (input ("Please enter the number you guessed:"))
if num = = A:
Print ("Guess right, you're awesome!!!" ")
Elif num > A:
Print ("You guessed big ... ")
Else
Print ("You guessed small ... ")
--------------------------------------------
#for循环
A = 25
Print ("Guess number, you can guess 10 times")
For I in range (10):
num = Int (input ("Please enter the number you guessed:"))
if num = = A:
Print ("Guess right, you're awesome!!!" ")
Break
Elif num > A:
Count = 9-i
Print ("You guessed big, you can also guess", count, "times")
Else
Count = 9-i
Print ("You guessed small, you can also guess", count, "times")
=============================

Alex deploys the Day1 job while talking about some of the most important points for programmers:

1, the programmer's best resume:

A. Write a blog, to keep writing every day (how to feel back to the student age, Daily Diary);

B. GitHub address (already registered, place code, not familiar with how to use).

2, develop a good habit:

A. A flowchart is needed for each procedure;

B. There should be a readme for each procedure.

Pycharm Software Tips:

Multiline indent: Pressing the TAB key, the selected multiline automatically indents 4 characters;

Multi-line back shrink-forward: Press Shift+tab to select multiple lines to retract 4 characters.

Python Learning _ First day _20161003

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.