收藏 分享(赏)

Python-Programming-Python-Programming-for-Beginners-Python-Programming-for-Intermediates.pdf

上传人:jintaihu 文档编号:5711083 上传时间:2022-06-16 格式:PDF 页数:115 大小:9.98MB
下载 相关 举报
Python-Programming-Python-Programming-for-Beginners-Python-Programming-for-Intermediates.pdf_第1页
第1页 / 共115页
亲,该文档总共115页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、Python ProgrammingPython Programming for Beginners By Adam Stewart Copyright 2016 by Adam StewartAll rights reserved. No part of this publication may be reproduced, distributed, or transmitted inany form or by any means, including photocopying, recording, or other electronic or mechanicalmethods, wi

2、thout the prior written permission of the publisher, except in the case of briefquotations embodied in critical reviews and certain other noncommercial uses permitted bycopyright law. Table of Contents IntroductionChapter 1: Learning About PythonThe Origins of PythonWhy Use Python?Chapter 2: The Ben

3、efits and Negatives of PythonThe Benefits of PythonThe Negatives of PythonChapter 3: Common Terms You Should Know with PythonChapter 4: Getting Started with PythonText EditorGetting IDLEChapter 5: Learning the Basics of Python ProgrammingChapter 6: A Bit More on CommentsChapter 7: Variables and What

4、 They Do in PythonConclusionIntroduction Getting started in coding can be tough. You may have looked at a few of themost popular coding languages, such as C+ or Java and been a bit scared bywhat you saw. The pages may have been filled to the brim with letters andsymbols that you just didnt understan

5、d, and you became frustrated and justwanted to walk away. Many people are scared of programing and feel like it isjust too hard for them. But with the Python programming language, you willfind that it can be easier than ever to learn about coding and to even read it likea professional. This guideboo

6、k is going to give you some of the basics that you need to getstarted with Python programming. We will start out a bit talking about whatPython programming is as well as some of the steps that you should take inorder to download the program, if it isnt already present on your computer, andgive you s

7、ome more information to really understand why this program is sogreat. We will then move on to some keywords that will be useful to you whenstarting out with the program and even talk about the benefits and thedrawbacks of using Python for all your coding and programing needs. The rest of the guideb

8、ook is devoted to talking about some of the different欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!things that you can do within the Python program as well as some examples ofhow each of these would work. We talk about adding comments into the code,working with strings and integers,

9、and even spend some time working withvariables so that they will show up right in the program. It is a great idea toexperiment a bit with the process. Python makes it easy to test out your stringsso that you can figure out what is going to work and what needs some morepractice. Getting started in pr

10、ograming can seem like a challenge. You may worry thatyou arent going to be able to figure it all out and all of those crazy programinglanguages may have scared you away in the first place. This guidebook isgoing to spend some time looking at the Python language and exploring howeasy it can be to ge

11、t started with this simple program.欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!Chapter 1: Learning About Python The computer world has brought in many different types of people. Some areinterested in making money creating their own programs to sell to others. Somejust like to mess

12、around and learn different things about how the computer willwork. And still others have devoted their lives to programming, making it theproduct that brings home their income each month whether they work atrepairing computers, work in a corporation to keep the computers safe, or doingsome other asp

13、ect of computer technology. When it comes to computer technology, nothing is going to be simple. Beforeyou can even get a program to work on the computer, it needs to receive theright code to make it work. There are several options for code creation that acomputer tech can choose including Java, C+

14、and Python. Here we will欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!explore a bit about Python and why it is often preferred over the other twoprogramming options. Before you are able to start using Python to take over your programming needs,it is important to start learning more a

15、bout it and all of the great benefits youwill receive when using this program. Python is a high level programming tool,which means that it is easy to use and read, even as a beginner. The philosophybehind the code is readability and it has a type of syntax that allows theprogrammer to express their

16、concepts without having pages of code along withit. Compared to using other popular codes, like Java and C+, this can makePython much easier to complete. The philosophy of this code language is simple enough to use. It believes that asimple design is so much better than a complex one and that readab

17、ility isimportant. This is a great language for beginners to get started on because theywill actually be able to read and understand the code they are putting in. Withother options, they may have to spend a lot of time trying to get the code justright, adding in many other symbols to get it to work.

18、 But with Python, it is keptmuch simpler and you may find that it is easier to read through the lines andsee what you are doing. Some of the features that you may like with Python include:欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍! An elegant syntax which will make the programs so

19、 easy to read.Language that is easy to use so that the program will work without a lotof bugs. If you are doing ad hoc programming tasks or prototypedevelopment because it works well without issues with maintaining theprogram.Has a large library that will work with other programming tasks such ascha

20、nging files, searching for text, and connecting with web servers.Python is really interactive. This makes it easier for you to test out smallbits of code to see if they work. You can also bundle it with adevelopment environment called IDLE.If you would like to expand the programming language, it is

21、easy toextend into other modules like C or C+.Python programming can be run on any unit including Unix, Linux,Windows, and Mac OS X.The software is free. You wont have to pay anything to download anduse Python in your own life. you can also make modifications andredistribute this product. It is unde

22、r a license, but it is an open sourcelicense so others are able to use it.Even though Python is a simple programming language, it does containsome advanced features like list comprehensions and generators.Errors can be caught quickly in this programming. Since data types aredynamically typed, when y

23、ou mix types together that dont match, it will欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!raise an exception for you to notice.You can group the codes into packages and modules if needed.There is a wide variety of basic data types that you can choose fromincluding dictionaries, lis

24、ts, strings, and numbers. The Origins of Python The beginning of the modern Python programming started in December of1989. The creator of this program was Guido van Rossum who beganprogramming as more of a hobby. At the time, van Rossum was working on aproject with the Dutch CWI research institute,

25、that was later terminated. VanRossum was able to use some of the basics of this new language, known as theABC language, in order to work on Python. The main strength of this language is that it is really easy to extend upon tomake more complex, or keep simple, and it was able to support multipleplat

26、forms. Both of these were important during the days when personalcomputers were becoming popular. And since Python was designed tocommunicate with different file formats and libraries, it became a hit as well. Python has grown quite a bit since its inception and more tools have beenadded to make the

27、 programing more functioning. In addition to making Python欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!easy to use, van Rossum has been working on initiatives that encourage theeducation of coding to everyone, not just a select few. Using Python to usecoding can make things easier a

28、nd helps to get rid of some of the fearsassociated with the complex computer codes since it doesnt look so scary. Over the years, van Rossum decided to make Python open sourced. Thisallowed all to gain access and make changes to Python so that if somethinghappened to van Rossum, all would not be los

29、t. Thanks to having Python opensourced, Python 2.0 was released during 2000 to make it more communityoriented and to have a transparent development process. There are a few newerversions of Python 2.0 still being used, but Python 3 has been taking the worldby storm and most anticipate this will be t

30、he normal one used within the nextfew years. Python 3 This version of Python was released in 2008. It is not simply an update to theprogram, but a complete change in it. While there are a lot of great features thatcome with this version, it doesnt have a backward compatibility so you willhave to mak

31、e a choice between Python 2.0 and Python 3. To make thingseasier, the programmers did make a little marker within the program that wouldshow a coder what needed to be changed between the two programs when欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!uploading. Despite this, most have

32、 stuck with Python 2.0 for now. Why Use Python? As you can probably guess, there are several different computer codingprograms that you can choose to use. But while there are some benefits tousing these other programs, Python is one of the best options out there. It iseasy to use, has a lot of optio

33、ns for you to choose from, and it can even beused over a variety of platforms without having to change things up. Some ofthe benefits that you will love with Python include: Readability Python is designed to work with the English language, making it easy to read.There are also strict rules in terms

34、of punctuation on the program so you arentjust looking at brackets all over the place. Python also makes sure that theprogrammer knows how to format everything thanks to a set of rules that are inplace, making it easy for everyone to create a code that others can follow. Libraries 欢迎加入非盈利Py t h o n

35、编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!Python has been around for over 25 years now and since it is one of the easiestcodes to learn how to use, there have been quite a few different codes writtenusing the system. The good news is that this system is open sourced so that thecode is available fo

36、r any programmer to use. You can install the Pythonprogram in your own system and use it for your own personal use. Whetheryou are using the codes to finish off a product or to write some of your owncodes, the library of Python is easy to use. The codes that you want will beinstalled into the librar

37、ies and since the program has been around for a long tie,they are going to cover pretty much whatever you want from automating yourserver to making changes to a picture. Community Since Python is so popular, the community for Python is pretty big. There areconferences with lots of networking and wor

38、kshops available for thisprogramming products and lots of places you can visit, both online and offline,to ask questions or to learn more about the program. You may want to considerchecking out a few of these places if you are a beginner with Python as it canhelp you to learn more and even to meet s

39、ome new people. If you are interested in getting started with coding, Python is one of the bestoptions that you can make. It is simple to get started on and since it will work欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!on a variety of different platforms, it is sure to work on your

40、 personalcomputer. Since it is easy to read, you will find that coding doesnt have to bea challenge and you can create your own, or learn from others in no time.欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!Chapter 2: The Benefits and Negatives of Python Python is a great program to

41、use whether you are a beginner in theprogramming world or you have been into it for some time. Many of those whoare just looking at getting started with programming will jump right in withPython and make it their own. It is simple to understand and can be used byanyone who is ready to get started wi

42、th coding. This chapter is going to takesome time to explain some of the positives, as well as some of the drawbacks,of using Python for your programming language. The Benefits of Python Python is probably one of the best programming languages that you can chooseto use. Beginners are going to love h

43、ow easy it is to turn on this program and欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!start writing their own codes, even without experience, and there is plenty toenjoy when you are a professional, or an expert, as well. Some of the benefitsthat you will get when you get started wi

44、th Python include: Easy to use and read When it comes to programming language, there are none that are as easy to useas Python. Other languages are kind of clunky and hard to look at. You maytake a look at them and notice that they have tons of brackets and even wordsthat you wont even recognize. It

45、 is enough to scare away someone who isntused to programming at all just because all the words look a bit intimidating. Python is a bit different. Instead of all the crazy brackets, it makes use ofindentations, causing an easier to read page that isnt such a mess. Instead ofwords that you cant under

46、stand, it uses English. The other special charactersare kept to a minimum so that you can look at the page of code and not feellike you are going to be overwhelmed in the process. This is one of the easiest programming tools that you can use. It looks nice onthe page and will use plenty of white spa

47、ces, when it can, to make it easier to欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!read what you should know. There are also plenty of places with comments soyou can get clarification if a program is too confusing for you. Overall, it isone of the best programming languages to use t

48、o really get ahead or even tolearn about programming. Uses English as the main language Since English is the language that this program is based off, it is really easy toread. There arent a lot of words that you wont get and you wont have tospend time trying to figure out what it is telling you. The

49、 program is all inEnglish and you will love how simple this can make things. Already present on some computers In some cases, Python is already present on your computer. Mac OS X systemsas well as those with Ubuntu will already have Python preloaded. You willsimply need to download a text interprete

50、r to get started. In terms of usingPython on Windows computers, all you need to do is download the program.Python works with all of these programs, even if it isnt installed right from thebeginning. 欢迎加入非盈利Py t h o n 编程学习交流QQ群783462347,群里免费提供500+本Py t h o n 书籍!Can work with other programming languag

展开阅读全文
相关资源
相关搜索
资源标签

当前位置:首页 > 技术资料 > 技术方案

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:文库网官方知乎号:文库网

经营许可证编号: 粤ICP备2021046453号世界地图

文库网官网©版权所有2025营业执照举报