Python program to swap two variables
x = 5
y = 10
To take inputs from the user
#x = input('Enter value of x: ')
#y = input('Enter value of y: ')
create a temporary variable and swap the values
temp = x
x = y
y = temp
print('The value of x after swapping: {}'.format(x))
print('The value of y after swapping: {}'.format(y))
En esta página del sitio puede ver el video en línea Python Coding de Duración hora minuto segunda en buena calidad , que subió el usuario Work With Python 29 julio 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 246 veces y le gustó like a los espectadores. Disfruta viendo!