Hi, I am an international student here in Munich. I am currently learning german at an A1 level and have some basic conversational skills which can help me get by but I obviously can't hold long conversations.
Before I get into this, please understand that I am not looking for comments telling me how stupid I am or how I was too gullible, I know that fully well, and already feel pretty ashamed. Today I was at the Giesing U-bahn when someone approached me, probably because he could tell I was an international. He asked me if I have a note for 5 euros and showed me some coins in his fist so I thought he wanted to exchange some coins for a note, so I said yes (again I know I shouldn't have even engaged in conversation with him and that this was extremely stupid of me).
He took me to the ticket machine, and so i figured he needed a note because if I am correct, these machines don't accept coins or something (at least that was my thought process at that point, I wasn't sure because have the student deutschland ticket). Then he pressed some ticket option which was around 18 euros I think and then he said "15 euros", I should've immediately backed off but instead like an idiot, I took out 15 euros and handed it to him and thought that he would give them back to me in coins, which was again a very stupid thing because even if he did return coins, how the hell would I count 15 euro worth coins on the spot and then carry them with me?? But at that point I didn't have the situational awareness and idiotically gave him the 15.
He just took it and started walking away, I tried stopping him but he just said "no no" and then left.
I feel extremely ashamed of my stupidity, so instead of guilting me about that, it would be really helpful if someone could give me any advise on what can be done in situations like this? Obviously the first most obvious thing would be to not get into these situations by avoiding talking to strangers, but if something like this does happen, should I try contacting the police? Should I take photos of the person who did this, or something else? I didn't confront the guy who took the money from me because I was worried about a physical altercation, and physically he looked significantly bulkier than me.
EDIT: Thank you everyone for your kind comments and I completely understand that I should take this as a lesson for the future. Regarding some comments which are saying there was no scam involved here, the reason I am pretty sure this was a scam is because despite our communication barrier, he pointed at the coins and pointed at me in a way to try and show that he would give me the coins in exchange for the notes. Another reason i strongly believe this was a scam was because even though he pretended like he was asking for hte notes to get a ticket, after getting the notes from me, he didn't purchase the ticket plus after walking away from me, he kept an eye on me from afar to see what I would do at which point I felt scared and left the station.
As to why he took me to the ticket machine in the first place if he didn't want to buy the ticket, my best guess is, he wanted to make the situation more believable and try to get more money off of me.