Sarthak Baral's profileExpert

Sarthak Baral

Senior Content Editor @Programiz

Answered 2 questions


About

Hi, I’m Sarthak Raj Baral, Senior Content Editor at Programiz. I write and I know things - that’s the job, the joy, and occasionally the existential crisis. I make sure our content is clear, useful, and sounds like it was written by someone who cares (because it was). When I’m not editing, I’m probably chasing the next read, the next idea, or a better way to say something with fewer words.

Answered by Sarthak Baral
Sarthak Baral
Expert
2 weeks ago
Sarthak Baral answered

Hi Abhishek!

For starters, we believe that anyone can code; all you need is study and practice.

Transitioning from electrical engineering to the computer science sector can be a good move. Your electrical engineering background is actually a huge advantage; you already know how to break down complex problems.

As for whether coding is the right fit for you, consider this:

It looks like you've just started the Python Basics course. Continue through it, take the time to practice writing code, and see how you feel about it. If you enjoy solving problems and building projects, that's a good sign that coding could be a fulfilling path for you.

Let me know if you have any more questions or need guidance along the way. I'm here to help!

Oh, and one last thing - if you're willing to put in the time, if you're willing to study and practice, there's absolutely no reason why someone from your background can't excel in coding.

Python
This question was asked as part of the Learn Python Basics course.
Sarthak Baral
Expert
2 months ago
Sarthak Baral answered

Hi there! Multiplying numbers in Python is quite straightforward, and it's great that you're diving into this lesson on data types.

To perform multiplication, you'll use the asterisk symbol (*), which serves as the multiplication operator in most programming languages, including Python.

Let's update the code you're working with to perform an actual multiplication:

result = 2 * 2
print("2 * 2 =", result)

This code assigns the result of 2 * 2 to the variable result and then prints it out, showing the numerical answer to the calculation.

Output

2 * 2 = 4

You can multiply any numbers using the same approach by replacing 2 with any other numbers you want to multiply.

You'll learn more about this as you follow the course, so for now, just click the Next Lesson button and continue your journey.

Hope this helps! Let me know if you have more questions about numbers or anything else you're curious about.

This question was asked as part of the course.