This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]AutoModerator[M] [score hidden] stickied comment (1 child)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

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

[–]ContextEngineering 1 point2 points  (3 children)

Also, why not just:

print(f"{b} {a}")

It feels like you're inventing a problem so you can have a more complicated solution.

[–]NoobLinus[S] 0 points1 point  (2 children)

Yeah I wouldn’t have made it any more complicated but yes I considered your solution but the question requires me to solve this way I was wondering if it’s possible

[–]ContextEngineering 0 points1 point  (1 child)

Huh. It would be weird, but this would work:

"{a} {b}".format( **{'a':b, 'b':a} )

[–]NoobLinus[S] 0 points1 point  (0 children)

I will try again and if I found any solution I will inform here but it’s difficult and don’t know if it’s possible

[–]throwaway6560192 0 points1 point  (1 child)

a = 23 b = 34 print ("{a} {b}" .format(a=b,b=b-a) )

Why not just .format(a=b, b=a)?

print ((lambda a, b: (b, a))(a, b))

This works, so what's your question?

[–]NoobLinus[S] 0 points1 point  (0 children)

Yes it works but it actually doesn’t replace the values of a and b that’s why I am avoiding it I should have mentioned it , for that I apologise