├── 1.py ├── 2.ipynb ├── 2.py ├── Python Tutorial .pdf └── README.md /1.py: -------------------------------------------------------------------------------- 1 | #First program to add two numbers - line 1 2 | # a=10 # store 10 into variable a - line 2 3 | # b=15 # store 10 into variable a - line 3 4 | # c=a+b #add 10 and 15 and store into variable c - line 4 5 | # print("sum=",c) #display the sum - line 5 6 | # c1=2.5+2.5 7 | # c2=3.0-0.5 8 | # c3=c1+c2 9 | # print("sum=",c3) 10 | # print("welcome") 11 | # print(10,25) 12 | # x=4 13 | # y=5 14 | # print("sum=",(x+y)) 15 | # x=15.56 16 | # int(x) 17 | # num=15 18 | # float(num) 19 | # a=10 20 | # b=bin(a) 21 | # print(b) 22 | # b=oct(a) 23 | # print(b) 24 | # b=hex(a) 25 | # print(b) 26 | a=10 27 | b=20 28 | if(a>b): 29 | print("a",a) 30 | else: 31 | print("b",b) 32 | elements=[10,20,30,40,50] 33 | x=bytes(elements) 34 | for i in x: 35 | print(i) 36 | 37 | elements=[10,20,30,40,50] 38 | x=bytearray(elements) 39 | x[0]=88 40 | x[1]=99 41 | for i in x: 42 | print(i) 43 | 44 | s={10,20,30,40,50} 45 | print(s) -------------------------------------------------------------------------------- /2.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "metadata": {}, 6 | "source": [] 7 | } 8 | ], 9 | "metadata": { 10 | "kernelspec": { 11 | "display_name": "Python 3", 12 | "language": "python", 13 | "name": "python3" 14 | }, 15 | "language_info": { 16 | "name": "python", 17 | "version": "3.10.9" 18 | }, 19 | "orig_nbformat": 4, 20 | "vscode": { 21 | "interpreter": { 22 | "hash": "3c06e3e46abf38078fe4dac36a0085ec2b134ebbd73dd076183d243eeca6918f" 23 | } 24 | } 25 | }, 26 | "nbformat": 4, 27 | "nbformat_minor": 2 28 | } 29 | -------------------------------------------------------------------------------- /2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RashmivernekarN/Python-Programs/d50871bb8e504a89b8bbc2a3cc824eec33ab8d93/2.py -------------------------------------------------------------------------------- /Python Tutorial .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RashmivernekarN/Python-Programs/d50871bb8e504a89b8bbc2a3cc824eec33ab8d93/Python Tutorial .pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RashmivernekarN/Python-Programs/d50871bb8e504a89b8bbc2a3cc824eec33ab8d93/README.md --------------------------------------------------------------------------------