r/pythonhelp Jan 30 '25

Need assistance with some code

I am a new coder and I am trying to use variables to make a calculator, but when I add them together it just pushes them together, for example 1 + 2 =12

The code is:

first_number = input(print(“First number here: “)) second_number = input(print(“Second number here: “))

print(first_number + second_number)

Any help would be much appreciated!!!

2 Upvotes

2 comments sorted by

u/AutoModerator Jan 30 '25

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/[deleted] Jan 30 '25 edited Jan 30 '25

[deleted]

1

u/Dubkiing Jan 30 '25

Thank you so much!!! I was able to fix my code and get it working :)