We are sorry, eCoupon {0} {1} has been fully claimed
We are sorry, eCoupon {0} {1} has been fully claimed. Refresh and try when others quit.
{0} coupons left to claim
Compare
Added!
Build Your PC
View {0} Model
View {0} Models
Configure/Buy
Add To Cart
This Product has recently expired. Please contact your Lenovo Sales Representative to renew this item.
This model is configurable! Click Build Your PC to start configuring.
JOIN MYLENOVO REWARDS!
• Earn & redeem rewards
• Engagement rewards
• Member exclusive offers
 
COMING SOON
New Options Available
AVAILABLE SOON
READY TO SHIP
Price Match Guarantee
/shopping-faqs/#payments
off
Save
Lenovo Outlet Price
Your price
List Price
List Price
List Price is Lenovo’s estimate of product value based on the industry data, including the prices at which first and third-party retailers and etailers have offered or valued the same or comparable products. Third-party reseller data may not be based on actual sales.
Web Price
Web Price
Estimated value is Lenovo’s estimate of product value based on industry data, including the prices at which Lenovo and/or third-party retailers and e-tailers have offered or valued the same or comparable products. Third-party data may not be based on actual sales.
Web Price:
Exclusive Price:
Starting at
Instant Savings:  
eCoupon Savings:  
Additional Savings
Show Price Breakdown
Hide Price Breakdown
Use eCoupon:
Includes
Features
Key Details
Part Number:
See More
See Less
Coming Soon
expanded
collapsed
See More Details
Great choice!
You may compare up to 4 products per product category (laptops, desktops, etc). Please de-select one to add another.
View Your Comparisons
One moment please...
Search on Lenovo.com Public Website
& Up
Shipping Options
Update ZipCode
Response Error
Input Format Error
Pts
FREE
Specs Text Link
Specs Teaser Content
Specs Teaser Link
Learn More
Show now
Hide Details
View More Details
Includes {qty} item
(qty: {qty})
read more
Join Now for FREE!
OR
*Savings cannot be combined
Undecided?
Call our Sales Team at:
Mon-Fri 10:30am – 7pm NZST
Save
Pickup Availability near {0}
Update Location
All Eligible Items
Pickup Location for: {0}
{0} Miles Away
In Stock,
Today
Tomorrow
in {0} Days
Ready {0}
Open until {0}
Get Directions
Select This Location
Update
Use My Current Location
or
Enter Zip Code
Cancel
Store Pickup
Pickup unavailable
Available Today at select {0} locations
Get it today!
Get it tomorrow!
Lenovo and Best Buy have partnered to allow you to pick up Lenovo products at your local Best Buy. Choose a location near you and get it as soon as today!
Choose a pickup location
See all pickup locations
Ready {0}
at {0} {Store Name}
Pickup Availability near {0}
Update Location
All Eligible Items
Pickup Location for: {0}
{0} Miles Away
In Stock,
Today
Tomorrow
in {0} Days
Ready {0}
Open until {0}
Get Directions
Select This Location
update
Use My Current Location
or
Enter Zip Code
Cancel
Store Pickup
Pickup unavailable
Available Today at select {0} locations
Get it today!
Get it tomorrow!
Lenovo and Best Buy have partnered to allow you to pick up Lenovo products at your local Best Buy. Choose a location near you and get it as soon as today!
Choose a pickup location
See all pickup locations
Ready {0}
at {0} {Store Name}
AU use ecoupon tooltip
After eCoupon limit is met, price is {nonEcouponPrice}
QUANTITY UNAVAILABLE
Expiration Date:
Remaining Units:
My Price:
Hide quote dialog
Sign in or Create an Account
Sign In
Email Address
Password
Not enrolled for rewards? Join Now
 
/legal/
Terms of Use
Remember me
Forgot your username or password?
Create an Account
You can store addresses, easily keep track of your orders and save items in your cart for later.
Before you go, create a free account!
Create an Account
You can store addresses, easily keep track of your orders and save items in your cart for later.
The email format is incorrect, please try again
First Name
Maximum length is 50 characters
Last Name
For security purposes, password must contain:
8-20 characters
Two of the following: letters, numbers, or symbols ($!#&)
Confirm password
I agree to opt-in to Lenovo communications and I understand that my data will not be shared.
Yes, I have read and accepted the Terms of Use and Privacy Policy.
Please agree the terms and privacy policy
 
If you would like to earn rewards, you will need to check the join Rewards checkbox above. To create an account without earning Rewards, register below.
Register
The email format is incorrect, please try again.
Sorry, the password you entered is incorrect
We’re sorry, there are no locations within {0} miles.
Please update your location or select from available Best Buy locations below that exceed {0} miles.
Please enter a zipcode
Invalid Zip Code, please try again.
Update
Cancel
FPS
Pending
FPS for this system per game
within {Miles} miles
in {Store Name}
TELE DLP Click Here
Best Buy Store,
BEST BUY
Delivery
Delivery Unavailable
No available data
https://cdn.chargeafter.com/promotional-widget/lenovo/widget.min.js
48926fe9bfca6413557d5f1dbba57fc8e94efd2a
Save to:
My List
Create a List
{0} items
View
Create
Label
You must fill in this field
You currently have no saved lists
Guest List
List name is repetition
{0} item
Only a maximum of 15 lists can be created
Maximum character limit 200
Your wish list capacity is full, please remove lists and/or products to wish for more.
List at maximum, please remove items to wish for more products.
Shop
Compared
Exclusive Loyalty Price
Loyalty Savings
Your session is about to time out
Would you like to stay signed in?
minutes
seconds
Sign Out
Stay Signed In
Wishlist
Compare ({sum})
LOYALTY DISCOUNT
In your cart
In Your Cart & Compared
Compared
Your Price
Delivery
Quick View
View All Details
options
Tech Specs
(WEB EXCLUSIVE)
or
at
Select from
by {startDate}
between {startDate} {endDate}
delivered

What is a Variable in Computing?

This is a recommends products dialog
Top Suggestions
Starting at
View All >
Français
English
ไทย
繁體中文
Hi
TEMPORARILY UNAVAILABLE
DISCONTINUED
Temporary Unavailable
Cooming Soon!
. Additional units will be charged at the non-eCoupon price. Purchase additional now
We're sorry, the maximum quantity you are able to buy at this amazing eCoupon price is
Sign in or Create an Account to Save Your Cart!
Sign in or Create an Account to Join Rewards
View Cart
Your cart is empty! Don’t miss out on the latest products and savings — find your next favorite laptop, PC, or accessory today.
Remove
item(s) in cart
Some items in your cart are no longer available. Please visit cart for more details.
has been deleted
Please review your cart as items have changed.
of
Contains Add-ons
Subtotal
Proceed to Checkout
Yes
No
Popular Searches
skip to main content

Want a laptop that has it all?

  • Superior performance where you need it most
  • Communicate confidently with built-in intelligence
  • Nearly 3X faster internet with Intel® Wi-Fi 6/6E (Gig+)1
  • Fast-charging, long-lasting battery

What is a Variable in Computing?

In computing, a variable is a piece of memory that stores a value that can be changed. A variable can refer to anything from numbers and strings to objects, collections, and pointers. variables are essential in software programs—without them, most modern computing functions would be impossible.

Why are variables important?

Variables allow developers to write code more efficiently by giving them direct control over how their program will work based on certain conditions. For example, if an equation needs to be computed several times but with different values each time, using variables allows you to quickly change the value of the equation with minimal effort.

How do I declare variables?

Declaring variables is done by writing a line of code that assigns a name or label to your variable along with its data type (such as string or integer.) This allows the program to know what kind of information will be stored in the variable when it is used.

What are some different types of variables?

Many different types of variables are used in programming, including strings (a sequence of characters), integers (whole numbers), floats (numbers with decimal points), Booleans (true/false), arrays (lists), and objects (data structures consisting of properties and methods). Each type of variable has its own set of coding rules.

What's the difference: variable vs. argument?

Although both variables and arguments hold values within a program, there are some key differences. Arguments are generally used when calling functions or methods, while variables store information that can then be used within those functions or methods. Arguments must also be passed into functions, whereas variables can be declared outside or within functions. And arguments must match up exactly in terms of data type, while variables do not always need to match perfectly to be executed.

How do I change the value of a variable?

Changing the value of a variable typically requires writing new code, which includes assigning it a new value either through direct typing or by assigning another variable's value to it (called variable chaining). But some programming languages can assign dynamic values, such as random numbers or user-provided input, directly into a variable.

What is the scope of a variable?

Essentially, the scope of a variable is how far its visibility extends within your program, including whether its value can be seen from other parts of the code beyond where it was first declared. There are two kinds: global scope, which means any part of your program can access its value, and local scope, which only applies within whatever function or blocks in which the variable was initially defined.

Can two different variables have the same name?

Yes, variable shadowing is when you declare multiple variables with the same name, one with global scope and the other only applying locally. But this approach can lead to confusion, so it is discouraged for better readability purposes—unless you need it due to specific conditions in your program.

Why should I use variables in my code?

Using variables offers a variety of benefits to developers, starting with the fact it enables easier and faster debugging, since there's less manual work needed to discern each variable value. Variables also help with code readability since they provide context, making it easy to interpret what a line of code does without having to dive into the details of every instruction. Additionally, variables help make programs more flexible by giving developers control over how their code behaves when being run with different sets of values.

What is variable initialization?

Variable initialization is the process of assigning an initial value to a variable. This is usually done when the variable is first declared, although it can also be done afterwards, depending on coding language. Variable initialization helps keep track of where each variable's value currently stands for better organization and debugging purposes.

What are variable data types in computing?

Data types are used to specify the type of value that a variable can hold. Different data types have different capabilities and limitations, which help ensure that variables always contain valid information. Common data types include integers, strings, Boolean values, and floating-point numbers. Some languages offer more specific or advanced data types, too.

What is a variable declaration?

A variable declaration is a statement that sets the name of a variable and its data type. It also provides information about where the variable should be stored in memory. This process can include initializing the variable with an initial value, although that is not always necessary.

What are operators in computer code?

An operator is a special symbol or keyword used to perform an operation on one or more operands. The result of the operation is then returned as a value. In programming, operators are typically used within expressions to perform calculations or comparisons. Examples of common operators include +, -, *, and /. Other types of operators include assignment operators, logical operators, and bitwise operators.

What is the function in computer coding?

A function is a block of computer code that performs a specific task. It can accept parameters, otherwise known as arguments, which can be used to modify its behavior. When defined, functions typically have an accompanying return statement that specifies what the result of calling the function will be. Functions are often used to group related pieces of functionality and make them easier to use and understand.

open in new tab
Compare  ()
x