You are on page 1of 28

PC & MOBILE LIFESTYLE HARDWARE

PROGRAMMING

10 Basic Python Examples That


Will Help You Learn Fast
By Joel Lee / December 15, 2016 15-12-2016 / 9 minutes

Joel Lee
1747 articles

Joel Lee has a B.S. in Computer


Science and over six years of
Email Facebook Pinterest Twitter
professional writing experience. He
Advertisement is the Editor in Chief for
MakeUseOf.

Trending Now
Sublime Text 3 Keyboard
Shortcuts Cheat Sheet
by Akshata Shanbhag

The 8 Best Fact-Checking Sites


If you’re going to learn a new language today, Python is one of the for Finding Unbiased Truth
by Megan Ellis
options out there. Not only is it relatively easy to learn, but it has many
practical uses that can come in handy across several different tech- Google Maps Now O ers
Detailed Voice Guidance
related careers. by Dave Parrack

6 Best Soundboard Apps to


Create or Discover Free Sound
5 Reasons Why Python Programming Is Not Collections
by Mihir Patkar
Useless
Alexa Can Now Speak Spanish
Python -- You either love it or you hate it. You might even swing in the US
from one end to the other like a pendulum. Regardless, Python by Dave Parrack
is a language that's hard to be ambivalent about. 8 Useful Twitter Accounts to
READ MORE
Follow for Life Hacks
by Shianne Edelmayer

Video Game Graphics and


Settings Explained
This article is for those who already have some programming experience by Ben Stegner

and simply want to transition to Python as quickly as possible. If you have The 3 Best Flashcard Apps for
absolutely no programming experience whatsoever, we instead Mac
by James Hirtz
recommend these Python tutorial websites and these online Python
courses.

All basic Python examples were written for Python 3.x. We cannot Latest Giveaways!
guarantee that they’ll work on Python 2.x, but the concepts should be
transferable.
Is the Circle Home Plus Enough
Strings PC & MOBILE LIFESTYLE HARDWARE to Keep Your Family Safe
Online?
by Christian Cawley
Proper string manipulation is something that every Python programmer
Take Better Smartphone
needs to learn. Strings are involved whether you’re doing web
Movies, with the FeiyuTech
development, game development, data analysis, and more. There’s a right Vimble2 Gimbal
way and a wrong way to deal with strings in Python. by Joe Coburn

The Cutest Speaker You’ve Ever


Seen: Divoom Ditoo
String Formatting by James Bruce

The Roborock S4 is a Premium


Let’s say you have two strings: Robot Vacuum at a Surprisingly
A ordable Price
by Kris Wouk
>>>name = "Joel"
>>>job = "Programmer"
Latest Videos
And let’s say you want to concatenate (“join together”) the two strings
into one. Most people might be inclined to do this:

>>>title = name + " the " + job


>>>title
>"Joel the Programmer"
How to Program Arduino in
VSCode (Using Platform.io)
But this isn’t considered Pythonic. There is a faster way to manipulate
strings that results in more readable code. Prefer to use the format()
method:

>>>title = "{} the {}".format(name, job)


>>>title
>"Joel the Programmer"

Guess the Theme Songs...


The {} is a placeholder that gets replaced by the parameters of the Again! | TGTS S3E14
format() method in sequential order. The rst {} gets replaced by the
name parameter and the second {} gets replaced by the job parameter.
You can have as many {}s and parameters as you want as long as the
count matches.

What’s nice is that the parameters don’t have to be strings. They can be
anything that can be represented as strings, so you could include an
integer if you wish: Keep Your Family Safe Online,
with Circle Home Plus
>>>age = 28
>>>title = "{} the {} of {} years".format(name, job, age
>>>title
>"Joel the Programmer of 28 years"

String Joining
Another nifty Pythonic trick is the join() method, which takes a list of How to Stop Irrelevant
PC & MOBILE LIFESTYLE HARDWARE
strings and combines them into one string. Here’s an example: YouTube Recommendations

>>>availability = ["Monday", "Wednesday", "Friday", "Sat


>>>result = " - ".join(availability)
>>>result
>'Monday - Wednesday - Friday - Saturday'

The de ned string is the separator that goes between each list item, and
Take Better Smartphone
the separator is only inserted between two items (so you won’t have an
Videos, with the FeiyuTech
extraneous one at the end). Using the join method is much faster than
doing it by hand.

Conditionals
Programming would be pointless without conditional statements.
Fortunately, conditionals in Python are clean and easy to wrap your head
around. It almost feels like writing pseudocode. That’s how beautiful PLAY ALONG: Guess the Movie
Python can be. (SEASON FINALE) | TGTS

Boolean Values

Like in all other programming languages, comparison operators evaluate Latest Deals
to a boolean result: either True or False. Here are all the comparison
Modern $677
operators in Python:
Marketing & $39
Entrepreneurship
>>>x = 10 Bundle
>>>print(x == 10) # True
>>>print(x != 10) # False
Write Copy Like a $200
>>>print(x <> 10) # False, same as != operator
6-Figure a Year $12.99
>>>print(x > 5) # True
Copywriter
>>>print(x < 15) # True
>>>print(x >= 10) # True
>>>print(x <= 10) # True
Icon54: Unlimited $97
Membership $19

The is and not Operators

The ==, !=, and <> operators above are used to compare the values of two
Ivacy VPN: $1254
variables. If you want to check if two variables point to the same exact
Lifetime $39.99
object, then you’ll need to use the is operator: Subscription +
NAT
>>>a = [1,2,3]
>>>b = [1,2,3]
>>>c = a Affiliate Disclosure: By buying the products we
recommend, you help keep the lights on at
>>>print(a == b) # True MakeUseOf. Read more.
>>>print(a is b) # False
>>>print(a is c)PC#& True
MOBILE LIFESTYLE HARDWARE

You can negate a boolean value by preceding it with the not operator:

>>>a = [1,2,3]
>>>b = [1,2,3]
>>>if a is not b:
>>> # Do something here

>>>x = False
>>>if not x:
>>> # Do something here

The in Operator

If you just want to check if a value exists within an iterable object, like a
list or a dictionary, then the quickest way is to use the in operator:

>>>availability = ["Monday", "Tuesday", "Friday"]


>>>request = "Saturday"
>>>if request in availability:
>>> print("I'm available on that day!")

Complex Conditionals

You can combine multiple conditional statements together using the and
and or operators. The and operator evaluates to True if both sides
evaluate to True, otherwise False. The or operator evaluates to True if
either side evaluates to True, otherwise False.

>>>legs = 8
>>>habitat = "Land"
>>>if legs == 8 and habitat == "Land":
>>> species = "Spider"

>>>weather = "Sunny"
>>>if weather == "Rain" or weather == "Snow":
>>> umbrella = True
>>>else:
>>> umbrella = False

You could compact that last example even further:


>>>weather = "Sunny"
PC & MOBILE LIFESTYLE HARDWARE
>>>umbrella = weather == "Rain" or weather == "Snow"
>>>umbrella
>False

Loops
The most basic type of loop in Python is the while loop, which keeps
repeating as long as the conditional statement evaluates to True:

>>>i = 0
>>>while i < 10:
>>> print(i)
>>> i = i + 1

This could also be structured like so:

>>>i = 0
>>>while True:
>>> print(i)
>>> if i >= 10:
>>> break

The break statement is used to immediately exit out of a loop. If you just
want to skip the rest of the current loop and start the next iteration, you
can use continue.

The For Loop

The more Pythonic approach is to use for loops. The for loop in Python is
nothing like the for loop that you’d nd in a C-related language like Java or
C#. It’s much closer in design to the foreach loops in those languages.

In short, the for loop iterates over an iterable object (like a list or
dictionary) using the in operator:

>>>weekdays = ["Monday", "Tuesday", "Wednesday", "Thursd


>>>for day in weekdays:
>>> print(day)

The for loop starts at the beginning of the weekdays list, assigns the rst
item to the day variable, and the rst loop through applies only to that
variable. When the loop ends, the next item in the weekdays list gets
assigned to day and loops through again. It keeps going until you reach
the end of the weekdays list.
If you just want to run a loop for X amount of iterations, Python provides a
PC & MOBILE LIFESTYLE HARDWARE
range() method just for that purpose:

>>># Prints 0,1,2,3,4,5,6,7,8,9


>>>for i in range(10):
>>> print(i)

When it only has one parameter, range() starts at zero and counts up one
by one to the parameter value but stops just short of it. If you provide two
parameters, range() starts at the rst value and counts up one by one to
the second value but stops just short of it:

>>># Prints 5,6,7,8,9


>>>for i in range(5, 10):
>>> print(i)

If you want to count in intervals other than one by one, you can provide a
third parameter. The following loop is the exact same as the previous one,
except it skips by two instead of one:

>>># Prints 5,7,9


>>>for i in range(5, 10, 2):
>>> print(i)

Enumerations

If you’re coming from another language, you might notice that looping
through an iterable object doesn’t give you the index of that object in the
list. Indexes are usually non-Pythonic and should be avoided, but if you
really need them, you can use the enumerate() method:

>>>weekdays = ["Monday", "Tuesday", "Wednesday", "Thursd


>>>for i, day in enumerate(weekdays):
>>> print("{} is weekday {}".format(day, i))

This would result in:

>Monday is weekday 0
>Tuesday is weekday 1
>Wednesday is weekday 2
>Thursday is weekday 3
>Friday is weekday 4

For comparison, this is NOT the way to do it:


>>>i = 0 PC & MOBILE LIFESTYLE HARDWARE
>>>for day in weekdays:
>>> print("{} is weekday {}".format(day, i))
>>> i = i + 1

Dictionaries
Dictionaries (or dicts) are the most important data type to know in Python.
You’re going to be using them all the time. They’re fast, they’re easy to
use, and they will keep your code clean and readable. Mastery of dicts is
half the battle in learning Python.

10 Tips for Writing Cleaner & Better Code


Writing clean code looks easier than it actually is, but the
bene ts are worth it. Here's how you can start writing cleaner
code today.

READ MORE

The good news is that you’ve probably been exposed to dicts already, but
you likely know them as hash tables or hash maps. It’s the exact same
thing: an associative array of key-value pairs. In a list, you access the
contents by using an index; in a dict, you access the contents by using a
key.

How to declare an empty dict:

>>>d = {}

How to assign a dict key to a value:

>>>d = {}
>>>d["one_key"] = 10
>>>d["two_key"] = 25
>>>d["another_key"] = "Whatever you want"

The nice thing about a dict is that you can mix and match variable types. It
doesn’t matter what you put in there. To make initialization of a dict easier,
you can use this syntax:

>>>d = {
>>> "one_key": 10,
>>> "two_key": 25,
>>> "another_key": "Whatever you want"
>>>}
PC & MOBILE LIFESTYLE HARDWARE
To access a dict value by key:

>>>d["one_key"]
>10
>>>d["another_key"]
>"Whatever you want"
>>>d["one_key"] + d["two_key"]
>35

To iterate over a dict, use a for loop like so:

>>>for key in d:
>>> print(key)

To iterate both keys and values, use the items() method:

>>>for key, value in d.items():


>>> print(key, value)

And if you want to remove an item from a dict, use the del operator:

>>>del d["one_key"]

Again, dicts can be used for so many different things, but here’s a simple
example: mapping every US state to its capital. Initialization of the dict
might look like this:

>>>capitals = {
>>> "Alabama": "Montgomery",
>>> "Alaska": "Juneau",
>>> "Arizona": "Phoenix",
>>> ...
>>>}

And whenever you need the capital of a state, you can access it like so:

>>>state = "Pennsylvania"
>>>capitals[state]
>"Harrisburg"

Keep Learning Python: It’s Worth It!


These are just the basic aspects of Python that set it apart from most of
the other languages out there. If you understand what we covered in this
article, then you’re well on your way towards mastering Python. Keep at it
PC & MOBILE LIFESTYLE HARDWARE
and you’ll get there in no time.

If you had trouble following, don’t worry. It doesn’t mean that you aren’t
meant to be a programmer; it only means that Python doesn’t click as
easily for you. If that’s the case, I recommend that you check out these
tips for learning new programming languages.

6 Signs That You Are Not Meant to Be a


Programmer
Not everyone is cut out to be a programmer. If you aren't
completely sure that you're meant to be a programmer, here
are some signs that may point you in the right direction.

READ MORE

Most of all, it should be challenging but it shouldn’t be stressful. If it is,


check out our tips on learning to program without the stress.

Is there anything about Python that you don’t understand? Got any
other tips to share with Python newbies? Let us know in the comments
below!

Explore more about: Programming, Python.

Enjoyed this article? Stay informed by


joining our newsletter!

your@email.com Submit

Read our privacy


policy

13 COMMENTS WRITE A COMMENT

Scroll down for the next article


Asked Your Guide to Principles
PC & MOBILE LIFESTYLE HARDWARE
Questions Code Can Python Every
About Smell! Object- Programmer
Python How to Oriented Must
Programming Fix It Programming Follow

in the Big Crawler


Python: Programming Truths to Pull
The Language According Information
Important of the to From a
Di erences Future Science Website

How to Combine Multiple Data


Sets in Microso Excel Using
Power Query
By Anthony Grant / October 10, 2019 10-10-2019 / 5 minutes

Anthony Grant
3 articles

Email Facebook Pinterest Twitter

Microsoft Power Query is a useful tool to work with data inside of Trending Now
Microsoft Excel. It comes with a lot of features that make managing Sublime Text 3 Keyboard
data sets simple yet powerful. Shortcuts Cheat Sheet
by Akshata Shanbhag

Power Query is most useful when working with multiple sets of data, The 8 Best Fact-Checking Sites
rather than just one. It acts as a bridge between sets of data and for Finding Unbiased Truth
by Megan Ellis
Microsoft Excel.
Google Maps Now O ers
Detailed Voice Guidance
To prove it, we’ll walk you through a common task where Power by Dave Parrack
Query shines: combining two different data sets into one. 6 Best Soundboard Apps to
Create or Discover Free Sound
Collections
What Is Microso Power Query? by Mihir Patkar

Alexa Can Now Speak Spanish in


Microsoft Power Query is a tool included in Microsoft Excel for the US
by Dave Parrack
Windows. It’s only included in 2016 or newer versions, so check those
8 Useful Twitter Accounts to
versions to begin using. New users should make sure they’re pretty
Follow for Life Hacks
comfortable in Excel before starting to use Power Query. by Shianne Edelmayer
Video Game Graphics and
The
PCBeginner's
& MOBILE Guide to Microso
LIFESTYLE Excel
HARDWARE Settings Explained
by Ben Stegner
Use this beginner’s guide to start your experience with
Microsoft Excel. The basic spreadsheet tips here will help The 3 Best Flashcard Apps for
Mac
you start learning Excel on your own.
by James Hirtz
READ MORE

What Power Query allows you to do is load data from a number of


Latest Giveaways!
different sources, edit that data, and then import it into an Excel
worksheet. Learn more about why you should start using Microsoft Is the Circle Home Plus Enough
to Keep Your Family Safe Online?
Power Query.
by Christian Cawley

Take Better Smartphone Movies,


One of the source types from which you can pull data is other Excel
with the FeiyuTech Vimble2
sheets. To get the data for this Power Query demonstration, we are Gimbal
going to use two different Excel worksheets containing similar data by Joe Coburn

sets, and then combine them into one. The Cutest Speaker You’ve Ever
Seen: Divoom Ditoo
by James Bruce

Setting Up Your Data The Roborock S4 is a Premium


Robot Vacuum at a Surprisingly
A ordable Price
Let’s take two Excel workbooks, one titled “Cars.xlsx” and one titled by Kris Wouk
“Trucks.xlsx”. The contents of these sheets are simple. Each sheet
contains a table describing certain vehicles categorized by columns:
“Make”, “Model”, “Color”, and “Year”.
Latest Videos

PLAY ALONG: Guess the Movie


(SEASON FINALE) | TGTS

How to Program Arduino in


VSCode (Using Platform.io)

We are also creating a blank workbook titled “Vehicles.xlsx” that we


will do our work in.
To keep things simple we are using two data sets with the same
PC & MOBILE LIFESTYLE HARDWARE
header information. Our objective here is to create a new table with
both car and truck information.
Guess the Theme Songs...
Now that these workbooks are saved to the computer, let’s get to Again! | TGTS S3E14
work with Power Query!

Loading Data Into the Power Query Editor


To begin, all you need to do is open the workbook you want to contain
the nished data. In this case, the workbook is “Vehicles.xlsx”.

Power Query is so easy, you don’t even have to open the workbooks
Keep Your Family Safe Online,
with Circle Home Plus
containing data to extract what you need. In “Vehicles.xlsx” navigate
to the “Data” tab of your workbook options.

You will see the “Get Data” option in your toolbar. This option is the
entry to Power Query and will allow you to choose your source of
data.

You want to work with an Excel workbook, so choose the “From File”
options followed by “From Workbook”. Take Better Smartphone
Videos, with the FeiyuTech

How to Stop Irrelevant


YouTube Recommendations

Latest Deals

The editor will open a le explorer and you can navigate to a


workbook anywhere on your PC. You are going to choose the
“Cars.xlsx” le rst.
Vortix Muscle $399
Once you select your le, the Power Query Navigator menu will load Massager $170
to show you a preview of the sheet you selected. Notice the le
“Cars.xlsx” as well as the sheet is displayed in the Navigator. Click on
the sheet and the table will load on the menu just as it appears in your
worksheet! Click on “Transform Data” to open the data in the editor. Clean Email: $959
Lifetime $29.99
Subscription
PC & MOBILE LIFESTYLE HARDWARE

The Shell $399


Developer Master $19.99
Class Bundle

Modern $677
Marketing & $39
Entrepreneurship
Bundle

Using the Power Query Editor


The Power Query editor is packed with a lot of options, don’t worry
about those right now while you get familiar with the basics. At rst
glance, the data has been uploaded properly! It looks just like an Excel
table. Data is organized in rows and columns, with named headers at
the top.

On your right is a menu called “Query Settings” which contains an


“Applied Steps” window. Steps are just changes made to your table.
Keep an eye on this for later.

On the far left clicking on the “Queries” icon will expand the menu
and show the name of the table you are currently working in. Power
Query can take multiple tables at one time and will display them all in
this toolbar.
In order to append two tables together, they both need to be
PC & MOBILE LIFESTYLE HARDWARE
uploaded into Power Query. You have one, let’s grab the other.

Adding a Second Data Source

Inside of the editor, at the top right corner, is the “New Source”
button. This button allows you to select an additional data source and
add it to the Power Query Editor.

Choose “File” and then “Excel” to open the le explorer. Navigate to


“Trucks.xlsx” to select the le for importing.

Just like the rst Query, the Navigator will pop up allowing you to
choose your table from the worksheet. Select the worksheet click
“OK”. You will now see both the tables from the cars and trucks
worksheets in the Queries toolbar. Clicking on either table will display
the data contained in that worksheet.

Appending the Data Tables

Once you’ve done all the preparation, combining the data tables is
actually quite simple. Click onto the “cars” table, and in the toolbar
select “Append Queries” within the “Combine” section.

The Append window will pop up and prompt for a table that you wish
to join to your selected table. Remember that you are on the “cars”
table and appending the “trucks” table to it. Click on the trucks table
under “Table to append” and choose “OK”
PC & MOBILE LIFESTYLE HARDWARE

Here is the result:

Notice that all the car data and truck data are together on the same
table. The data sets are now joined! Also notice the Power Query has
created a new “step” in your list, an “Appended Query” step.

Loading the Data to Your Worksheet

The last thing to do is take this data stored on the Power Query editor
and load it onto your worksheet.

In the top left corner click on “Close & Load” to place the newly
created table onto the Vehicles sheet in table format. Upon clicking,
the following will happen:

The editor will save your Query steps and exit

The Workbook will appear with the data loaded as an Excel Table
Excel will also open the Workbook Queries menu on the right
PC & MOBILE LIFESTYLE HARDWARE
side of your sheet

You’re ready to work with your brand new table, all without ever
opening up the worksheets.

More Things You Can Do With Microso


Excel
Now that you’ve learned how to append data using Power Query you
have a powerful new tool to simplify data. Now that data is loaded
into Excel to use you can work with it just like any table. You can
create graphs and charts from Excel tables or summarize data
using Pivot Tables.

How to Make a Graph or Chart in Excel


Excel has robust visualization features, making it easy to
create powerful graphs and charts in Excel. You can even
use Excel to create self-updating graphs!

READ MORE

Explore more about: Data Analysis, Microsoft Excel, Microsoft Power Query.

Enjoyed this article? Stay informed by


joining our newsletter!

your@email.com Submit

Read our privacy


policy
PC & MOBILE LIFESTYLE HARDWARE

0 COMMENTS WRITE A COMMENT

Scroll down for the next article

From Download Free VPN Apps and


Top- Hulu Services Alternative
Rated Shows to to Protect Music
Instructors Watch Your Managers
for $45 O line Privacy for iOS

Features by Malicious The 5


to Try on Sending Accounts Best
Your Full and How Surge
Apple Screen to Spot Protectors
Watch Messages Them in 2019

MAC , PRODUCTIVITY

6 Apps That’ll Enhance


Multitasking on Your Mac
By Shubham Agarwal / Updated October 8, 2019 08-10-2019 / 5 minutes

Shubham Agarwal
145 articles

Based out of Ahmedabad, India,


Shubham is a freelance technology
Email Facebook Pinterest Twitter
journalist. When he's not writing on
whatever's trending in the world of
To get your work done ef ciently on your Mac, you probably multitask
technology, you will nd him either
among numerous apps. Yet Apple still offers a limited set of multitasking exploring a new city with his
features on macOS. The split-screen shortcut, for instance, forces you to camera or playing the latest game
switch to a new workspace and is restricted to two windows. on his PlayStation.

Luckily, you don’t have to settle for this narrow set of features; there’s a
range of third-party apps to try instead. Here are the best Mac apps for
improved multitasking.
1. Magnet PC & MOBILE LIFESTYLE HARDWARE
Trending Now
Sublime Text 3 Keyboard
Multitasking on Mac with Magnet Shortcuts Cheat Sheet
by Akshata Shanbhag

The 8 Best Fact-Checking Sites


for Finding Unbiased Truth
by Megan Ellis

Google Maps Now O ers


Detailed Voice Guidance
by Dave Parrack

6 Best Soundboard Apps to


Create or Discover Free Sound
Collections
by Mihir Patkar

Alexa Can Now Speak Spanish


in the US
by Dave Parrack

8 Useful Twitter Accounts to


Follow for Life Hacks
by Shianne Edelmayer

Video Game Graphics and


Magnet brings the best Windows multitasking function to macOS. When Settings Explained
enabled, you can simply drag app windows to your screen’s edges to snap by Ben Stegner

them into a split-screen view. Unlike the built-in method, you don’t need to The 3 Best Flashcard Apps for
Mac
hold down any keys or create a new workspace. Magnet lets you quickly by James Hirtz
organize windows to evenly t two or even four of them side-by-side.

Plus, you don’t have to manually move them. The window manager lets
you perform these actions through customizable keyboard shortcuts.
Alternatively, you can utilize its menu bar widget. Magnet supports up to
Latest Giveaways!
six external displays and even relocating windows between them using
dedicated keyboard combos. Is the Circle Home Plus Enough
to Keep Your Family Safe
Online?
Magnet is not a free tool, as it costs $1.99. But if you often nd yourself by Christian Cawley
annoyed by macOS’s native multitasking methods, the small cost is well Take Better Smartphone
worth it. Movies, with the FeiyuTech
Vimble2 Gimbal
Download: Magnet ($1.99) by Joe Coburn

The Cutest Speaker You’ve Ever


Seen: Divoom Ditoo
2. Mission Control Plus by James Bruce

The Roborock S4 is a Premium


Robot Vacuum at a Surprisingly
A ordable Price
by Kris Wouk

Latest Videos
PC & MOBILE LIFESTYLE HARDWARE

PLAY ALONG: Guess the Movie


(SEASON FINALE) | TGTS

This Mac utility does just what its name says. It enhances Mac’s Mission Take Better Smartphone
Control (the apps overview menu) by adding a handful of missing abilities. Videos, with the FeiyuTech

For starters, Mission Control Plus attaches a little X at the top-left corner
of every window in Mission Control. You can click this to instantly hide a
window, but it doesn’t close the app. So when you select the app icon
again from the Dock, you’ll be right back where you were before.

On top of this, the app enables a couple of handy shortcuts. Hide an app
by pressing Cmd + H, or use Cmd + W to close the window. You can also
How to Stop Irrelevant
hide all apps but the one you’re on with Option + Cmd + H.
YouTube Recommendations
Mission Control Plus offers a 10-day trial, after which you’ll need to buy it.

Download: Mission Control Plus ($3.99, free trial available)

3. Tuck

Tuck for Mac OS X by Irradiated Software How to Program Arduino in


VSCode (Using Platform.io)

Guess the Theme Songs...


Again! | TGTS S3E14

Tuck is another nifty tool for jumping between several apps on Mac. The
app allows you to temporarily tuck windows to the sides.
All you need to do is move your cursor to the center of any screen edge
PC & MOBILE LIFESTYLE HARDWARE
and Tuck will slide the window off the screen. When you want it back,
repeat the process and it will return immediately.

Instead of using your mouse, you also have the option of direct keyboard
shortcuts. You can hide as many windows as you like and easily cycle Latest Deals
through them. Additionally, Tuck includes a menu bar widget for viewing Keep Your Family Safe Online,
FastestVPN: $600
all tucked windows. with Circle Home
Lifetime Plus $19.99
Subscription (5
Tuck is free as long as you’re OK with a warning popping up every now
Devices)
and then. To get rid of that, you will have to pay a few dollars for a license.

Download: Tuck ($6.99, unlimited free trial available) Ivacy VPN: $1254
Lifetime $39.99
Subscription +
4. Slidepad NAT

iPad-style multitasking on Mac


Icon54: Unlimited $97
Slidepad is similar to Tuck, except instead of app windows, it puts a mini Membership $19

web browser within a gesture’s reach. When you move your cursor
towards the right edge’s center, Slidepad pulls out a panel where you can
load and add any web app. There’s no limit to the number of apps you can
Hushed Private $150
set up; Slidepad will maintain their state when you’re working on anything Phone Line: $25
else. Lifetime

So for instance, say you’re editing a presentation and want your


colleague’s help. If you have the Slack web app set up on Slidepad, just
ick the cursor towards the right to reveal the panel and enter your Slack
workspace immediately. Similarly, you can pin your to-dos or calendar and
take a peek to check what your schedule looks like in an instant.

The transition is smooth and doesn’t hinder your computer’s


performance. In Slidepad’s settings, you’ll also nd an option to reduce
the animations if you prefer.

Download: Slidepad ($9.99, free trial available)

5. uBar
uBar Dock Replacement

uBar supercharges your Mac’s Dock, which Apple has barely touched in
years.

uBar replaces macOS’ row of icons with a Windows-style Taskbar. It


clearly shows which apps are active, essential details like the time and
date on the right, a shortcut to your desktop, and a quick access menu for
your les. Hovering over a speci c app lets you preview its window (or
windows, if you have more than one open).
In addition, uBar can automatically hide after a period of inactivity. You
PC & MOBILE LIFESTYLE HARDWARE
can precisely adjust its theme and personalize elements such as the
background color and opacity.

Unfortunately, uBar is a bit expensive and will set you back $30. If that’s
too costly for you, have a look at some other macOS Dock alternatives.

Download: uBar ($30, free trial available)

6. WindowSwitcher

Window Managment in WindowSwitcher for Mac

WindowSwitcher addresses the macOS app switcher’s shortcomings. It


does so by adding a few much-needed functions to the utility.

WindowSwitcher assigns a number to each app in the Cmd + Tab menu.


That allows you to hop over to another app simply by pressing Cmd and
its assigned digit together while you’re in the switcher. What’s more,
WindowSwitcher adds shortcuts for hiding and closing an app.

Its biggest highlight is the resizing options. When you’re in the app
switcher, hover your cursor over an app to reveal a string of window
layouts. Click one to instantly resize the selected window. This lets you
shove it in a corner, bring it to the center, and more.

WindowSwitcher has a somewhat complicated pricing structure. Once


the seven day trial expires, you can choose to pay $12.99 to use it for a
year. Meanwhile, $19.99 gets you a lifetime license for all the app’s current
version updates. Finally, a perpetual license for all versions costs $39.99.

Download: WindowSwitcher ($12.99, free trial available)

Augmenting Your Mac With Missing Apps


These apps ll the biggest holes Apple has left in macOS’s multitasking
PC & MOBILE LIFESTYLE HARDWARE
abilities. Whether it’s replicating the best features of Windows or adding
clever new ones to your work ow, they have it all covered.

Multitasking tools are just one part of this puzzle. Next, check out the
range of missing Mac features you can add with third-party apps.

8 Missing Mac Apps Apple Should Have


Preloaded
Macs come loaded with useful software, but here are some
fantastic third-party apps every Mac user should install.

READ MORE

Explore more about: Mac Apps, Multitasking, Productivity Tricks.

Enjoyed this article? Stay informed by


joining our newsletter!

your@email.com Submit

Read our privacy


policy

0 COMMENTS WRITE A COMMENT

Scroll down for the next article

Explorer Cashback Movies, Stream


From Apps That with the Music to
Accessing Reward FeiyuTech Your
the You for Vimble2 Sonos
Internet Shopping Gimbal Speaker
Games Data Into Instagram EBOOK:
PC & MOBILE LIFESTYLE HARDWARE
for Python Accounts Bitcoin
Android Scripts You Explained
and Using Should in Simple
iPhone Pandas Follow Terms

What Is Microso Power Query


for Excel? 5 Reasons to Start
Using It
By Anthony Grant / October 7, 2019 07-10-2019 / 5 minutes

Anthony Grant
3 articles

Email Facebook Pinterest Twitter

Microsoft Excel is powerful and popular spreadsheet software that


Trending Now
makes working with data simple. Over time, Microsoft has developed Sublime Text 3 Keyboard
Shortcuts Cheat Sheet
some pretty innovative ways to work with your data.
by Akshata Shanbhag

If you’re looking for a powerful new way to manage data, Microsoft Excel The 8 Best Fact-Checking
Sites for Finding Unbiased
for Windows now has powerful software built in to help: Microsoft Power Truth
Query is a new tool that gives you more control over your spreadsheets by Megan Ellis

than ever before. Google Maps Now O ers


Detailed Voice Guidance
by Dave Parrack

What Is Microso Power Query? 6 Best Soundboard Apps to


Create or Discover Free
Sound Collections
Power Query (known in Microsoft Excel 2016 as “Get & Transform”) is a by Mihir Patkar
data transformation tool built right into Microsoft Excel. It allows you to Alexa Can Now Speak
import data from many different sources, make changes, and load the Spanish in the US
by Dave Parrack
data right into your Excel workbooks.
8 Useful Twitter Accounts to
If you’re just starting out, it would be good to learn about the basics of Follow for Life Hacks
by Shianne Edelmayer
Microsoft Excel.
Video Game Graphics and
Settings Explained
by Ben Stegner

The Beginner's Guide to Microso Excel The 3 Best Flashcard Apps for
Mac
Use this beginner’s guide to start your experience with
by James Hirtz
Microsoft Excel. The basic spreadsheet tips here will help you
start learning Excel on your own.

READ MORE

Latest Giveaways!
When you import into Power Query it creates a connection to your data. Is the Circle Home Plus
PC & MOBILE LIFESTYLE HARDWARE Enough to Keep Your Family
Using this connection, you can work with your data in the editor and make
Safe Online?
all your changes before you save to a workbook. by Christian Cawley

Take Better Smartphone


Power Query will save your changes as steps in a le known as a “Query”, Movies, with the FeiyuTech
which can be used any time. Think of it just like macros in VBA Vimble2 Gimbal
by Joe Coburn
programming, if you’re familiar.
The Cutest Speaker You’ve
Becoming comfortable with Power Query can take your Excel skills to the Ever Seen: Divoom Ditoo
by James Bruce
next level. If you regularly work with data, here are some great reasons to
The Roborock S4 is a
start using it. Premium Robot Vacuum at a
Surprisingly A ordable Price
by Kris Wouk
1. Microso Power Query Is Built Into Excel
Power Query is simple. If you have Excel 2016 or later on your PC, you
already have Power Query. You don’t need to download any additional Latest Videos
software or have any programming knowledge to begin using it.

To work with Power Query, simply open your workbook, select the Data
tab in the ribbon, and click on Get Data to choose one of many different
places to grab data from. You’re now up and running in seconds with
Power Query.

Note: For programmers, Microsoft did develop a new language for Power Keep Your Family Safe Online,
Query known as “M”. Advanced users can code scripts using “M”, which is with Circle Home Plus
a higher-level concept but provides extra power and value for expert
users.

2. Easy to Use Editor


Power Query provides a simple interface for working with your data. Once
you upload your data you can make changes inside of the editor, no
How to Program Arduino in
programming required.
VSCode (Using Platform.io)
If you’re already familiar with Excel, it’s that much easier since the editor
looks very similar to a window in Excel.

Power Query Editor Window

If you need to modify your data, you can do so right in the editor. Simple
changes are made easy. Some examples you can do are:

PLAY ALONG: Guess the Movie


Add or remove columns in your table
(SEASON FINALE) | TGTS
Filter your data by columns

Combine or join two tables together

Sort your data using Excel lters

Rename columns
Remove errors from your table
PC & MOBILE LIFESTYLE HARDWARE

Once you’re done with changes, simply export the results right onto your
Excel workbook. It’s very easy to work with multiple sheets, without
having to open every single one and make changes.

3. Makes Repetitive Tasks Simple Take Better Smartphone


Videos, with the FeiyuTech

A common chore when working with Excel workbooks is having to make


the same set of changes to different worksheets.

For example, let’s say you are given a report that shows sales numbers for
the month of July and you need to make changes. You open your table,
make your changes, and save. Simple, right? Then a month later, you are
given a new report for the month of August.
How to Stop Irrelevant
With Excel, you would have to open the workbook and make all those YouTube Recommendations
changes again just to get the same result. Depending on the number of
changes, this can be a lot of time! Power Query solves this problem.

When you connect to a workbook using Power Query and make changes,
those changes are saved as “steps”. Steps are just directions you give
Excel to change data (i.e. “Delete this column” or “Sort this table by color”).

All your steps are saved together, creating a neat little package. You can
Guess the Theme Songs...
apply this set of steps to a new worksheet in one click, instead of making Again! | TGTS S3E14
your changes all over again.

4. You Don’t Need Programming Knowledge


Latest Deals
Excel is programmable using Visual Basic for Applications (VBA), but
that’s a lot to learn. You can also use other programming languages with
Excel, but that requires a lot of set up.

The Excel VBA Programming Tutorial for


Beginners
VBA is a Microsoft Of ce power tool. You can use it to
automate tasks with macros, set triggers, and lots more. We'll
introduce you to Excel visual basic programming with a simple
project.

READ MORE

Not everyone’s a programmer. Fortunately, you don’t have to be one to


use Power Query. The editor is graphical and easy to use. Any change you
want to make is as simple as clicking on the interface. The editor looks
very similar to Excel, so you’ll feel right at home.
5. Collect DataPC From
& MOBILE Di LIFESTYLE
erent Sources
HARDWARE

Selecting Data Source With Power Query For Excel

We’ve talked a lot about Excel workbooks, but Power Query can get your
data from a lot of other places. If you want to work with data from a
webpage, you can import just as easily. Power Query can also pull data
from various sources such as:

CSV Files

Text Files

SQL Databases

XML Files

Mircosoft Access Databases

There are many more sources you can use, but don’t get overwhelmed. As
you become more comfortable using Power Query you may have a use for
some, or all, of these uses.

Why Not Just Use Microso Excel?


Excel is pretty powerful as is, no doubt about it. But if you’re an expert
user working with many different sheets your work ow can be a lot to
manage.

It’s important to think of Power Query not as a spreadsheet, but as a


control panel through which you can work with data. The layout is similar
to Excel to make it easier to work in. You can be very productive by
combining the strengths of Excel and Power Query.

Empower Your Microso Excel Skills


There are a lot of great reasons to start using Power Query to manage
your spreadsheets. If you master the basics of this program, you can
create tables and work with data much easier.

Go further and build up your Microsoft Excel expertise with our articles on
creating graphs from data in Microsoft Excel and analyzing data using
Pivot Tables in Microsoft Excel.
How
PC & to Create Powerful
MOBILE LIFESTYLE Graphs & Charts in
HARDWARE
Microso Excel
A good graph can make the difference between getting your
point across or leaving everyone dozing off. We show you how
to create powerful graphs in Microsoft Excel that will engage
and inform your audience.

READ MORE

Explore more about: Microsoft Excel, Microsoft Power Query, Scripting.

Enjoyed this article? Stay informed by


joining our newsletter!

your@email.com Submit

Read our privacy


policy

1 COMMENT WRITE A COMMENT

Scroll down for the next article

Data Into Excel Scripts to Monthly


Python Expert Automate Invoices
Scripts with this Your From
Using $19 Computer Google
Pandas Course Use Sheets

Excel Lookup Box and Microso


Cells vs. Functions Whisker Excel
Range to Search Plot in Using
Functions Spreadsheets Microso Power
in VBA E iciently Excel Query
© 2019 MakeUseOf. PC
All &Rights Reserved.
MOBILE LIFESTYLE HARDWARE

You might also like