This forum is now read-only. Please use our new forums! Go to forums
what does symbol ^ mean
in the example of eight = 2 ** 3 I don’t really understand the explanation of this expression: 3(2^3)
I tried to goolge what does ^ mean in both math and coding, but no correct results returned
as I dont really have a coding friend to ask
please help me
PS: the practice is very easy, just copy the question description, but I so badly want to know the meaning of ^
Answer 54d030eb9113cb4537001885
2^3
actually means 2 ** 3
in the current course. In some languages, but not in Python, ^
is an exponentiation operator.
In Python, ^
is an exclusive or (XOR) operator. Accordingly, 2^3
evaluates to 1
, and not 8
. You’ll learn about the exclusive or operation in Introduction to Bitwise Operators.
For the current course, use **
for exponentiation. 2 ** 3
evaluates to 8
.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
thank you! the link is helpful too