|
[Sponsors] |
I need output for this following python program |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 12, 2020, 15:36 |
I need output for this following python program
|
#1 |
New Member
Narendra
Join Date: Jun 2020
Posts: 1
Rep Power: 0 |
I need Source Code Using a temporary variable in Python
# 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)) |
|
Tags |
programming, python, python script, python support, software |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forward simulations -- Evaluating objective function only without design modules | kensaii | SU2 Shape Design | 4 | April 25, 2020 16:12 |
[OpenFOAM.com] Trouble building Paraview from ThirdPartyv1812 folder with python and mpi support | praphul | OpenFOAM Installation | 4 | April 8, 2019 02:26 |
[PyFoam] what is the unused output? | leroyv | OpenFOAM Community Contributions | 4 | July 4, 2014 05:55 |
[OpenFOAM] paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7 | aylalisa | ParaView | 4 | June 13, 2014 09:52 |
CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 10:36 |