├── Python program to swap two variables ├── README.md └── index loop /Python program to swap two variables: -------------------------------------------------------------------------------- 1 | # Python program to swap two variables 2 | 3 | x = 5 4 | y = 10 5 | 6 | # To take inputs from the user 7 | #x = input('Enter value of x: ') 8 | #y = input('Enter value of y: ') 9 | 10 | # create a temporary variable and swap the values 11 | temp = x 12 | x = y 13 | y = temp 14 | 15 | print('The value of x after swapping: {}'.format(x)) 16 | print('The value of y after swapping: {}'.format(y)) 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Added Readme file 2 | -------------------------------------------------------------------------------- /index loop: -------------------------------------------------------------------------------- 1 | my_list = [21, 44, 35, 11] 2 | 3 | for index, val in enumerate(my_list, start=1): 4 | print(index, val) 5 | apiVersion: serving.knative.dev/v1 6 | kind: Service 7 | ... 8 | spec: 9 | template: 10 | spec: 11 | containers: 12 | - image: IMAGE_URL 13 | ports: 14 | - name: h2c 15 | containerPort: 8080 16 | 17 | again and again and again 18 | --------------------------------------------------------------------------------