Coding & Programming User Manual 6 - 2025 UK.pdf

(14143 KB) Pobierz
Papercut’s
& Programming
USER MANUAL
FREE
DIGITAL
MAGAZINE
DOWNLOAD
Worth £9.99
See inside for details
Discover more about the
most popular coding
languages in the world
Learn new coding skills
with Python, Linux, C++
and Raspberry Pi
750+
OVER
140
PAGES
Professional tricks,
tips and step-by-step
tutorials + projects
100% INDEPENDENT
Save a Huge
ALL Digital Manuals!
*
have teamed up with
to bring you this incredible offer. Not only can you learn new skills and
master your tech, but you can now
SAVE 50%
off all of our coding,
photography and consumer tech digital manuals!
www.pclpublications.com/product-category/digital/
Make your selection(s) and then simply use the following exclusive
code at checkout to get your purchase at half price:
To take advantage of this amazing offer visit:
ZINIO50
*Please note this exclusive single use per user discount code requires sign up for activation.
Discount cannot be applied against discounted items, print titles or used with an additional discount code.
Papercut’s
& Programming
USER MANUAL
Coding is everywhere. From your TV through
millions of lines of code controlling and
delivering the services that we take for granted.
Behind all this code are the programmers who
develop our digital world, using a multitude
of different languages to weave the fabric of
the Internet, operating systems, games and
modern entertainment.
We show you the fundamentals for Python,
Linux, Raspberry Pi and C++, four of the most
powerful languages in the world that are
used by the likes of NASA, Microsoft, Apple and
concepts, tutorials, hints and projects that will
take you from being a beginner to an advanced
programmer able to form your own code. Your
programming journey starts here...
M a s te r yo u r te c h @
w w w. p c l p u b l i c a ti o n s .c o m
</> Contents
06
8
10
12
14
Welcome,
Future Coder
32
34
36
38
40
42
44
46
48
Coding
with C++
Being a Programmer
A Brief History of Coding
Choosing a Programming Language
Creating a Coding Platform
Your First C++ Program
Compile and Execute
Using Comments
Variables
Data Types
Strings
C++ Maths
User Interaction
16
18
20
22
24
26
28
30
Introducing
C++
50
52
54
56
58
60
62
64
Introducing
Python
Why C++?
Equipment You Will Need
Structure of C++ Code
How to Set Up C++ in Windows
How to Set Up C++ on a Mac
How to Set Up C++ in Linux
Other C++ IDEs to Install
Why Python?
What Can You Do with Python?
Equipment You Will Need
Getting to Know Python
How to Set Up Python in Windows
How to Set Up Python in Linux
Python on the Pi
4
www.pclpublications.com
Contents </>
See page 146
for details
FREE
Digital
Download
Claim your
66
68
70
72
74
76
78
80
82
84
86
88
Coding
with Python
106
108
110
112
114
116
118
120
122
124
126
128
130
132
134
Coding
with Linux
Starting Python for the First Time
Your First Code
Saving and Executing Your Code
Executing Code from the Command Line
Numbers and Expressions
Using Comments
Working with Variables
User Input
Creating Functions
Conditions and Loops
Python Modules
Why Linux?
The Best Linux Distributions
Equipment You Will Need
Creating a Linux Installer on Windows
Installing Linux on a PC
Installing a Virtual Environment
Installing Linux in a Virtual Environment
Getting Ready to Code in Linux
Creating Bash Scripts – Part 1
Creating Bash Scripts – Part 2
Creating Bash Scripts – Part 3
Creating Bash Scripts – Part 4
Creating Bash Scripts – Part 5
Command Line Quick Reference
90
92
94
95
96
98
100
102
104
Starting With
Raspberry Pi
136
136
137
138
140
144
Common
Coding Mistakes
Say Hello to Raspberry Pi
Raspberry Pi 5 In Depth
Pi 5 Spec Sheet
Up Close with the Pi 500
Raspberry Pi OS
Which Pi is Right For Me?
Initial Kit You’ll Need and How to Set It Up
Set up Raspberry Pi On Your Desktop
Easy Variables & Comments
User Error & Secure Data
Python Beginner’s Mistakes
C++ Beginner’s Mistakes
>>>
www.pclpublications.com
5
Zgłoś jeśli naruszono regulamin