I'm trying to combine a list of first- and surnames with no luck. My code is like this at the moment:
firstname=['Tom','Dick','Steve']
surname=['Johnson','Smith','Doe']
for f in (firstname):
for s in (surname):
print(f,s)
Which gives me something like this:
Tom Johnson
Tom Smith
Tom Doe
Dick Johnson
And so on, when I really want:
Tom Johnson
Dick Smith
Steve Doe
Help much appreciated for a beginner like me.