B

@best_hindi_tutorials

c language me sum and average ko find karne ke liye program

C
3 years ago
/* C प्रोग्राम दो संख्याओं का SUM और AVERAGE पता करने के लिए कोड */ #include <stdio.h> int main() { int a,b,sum; float avg; printf("Enter first number :"); scanf("%d",&a);

Python Program to Find the Largest Among Three Numbers

Python
3 years ago
# तीन नंबरों में सबसे बड़ा खोजने के लिए पायथन प्रोग्राम # num1, num2 और num3 की वैल्यू को बदलें num1 = 10 num2 = 14 num3 = 12 # अगर आप को यूजर से इनपुट लेनी है तो आप नीचे दी गयी तीन लाइन को uncomment करे #num1 = float(input("Enter first number: ")) #num2 = float(input("Enter second number: "))

python number data type

Python
3 years ago
x = 5 print("The type of x", type(x)) y = 40.5 print("The type of y", type(y)) z = 1+3j print("The type of z", type(z)) print(" c is a complex number", isinstance(1+3j,complex))

Bitwise Operator in Python

Python
3 years ago
x = 50 # 50 = 0011 0010 y = 15 # 15 = 0000 1111 z = 0 z = x & y; # 14 = 0000 1110 print ("Line 1 - Value of z is ", z) z = x | y; # 51 = 0011 0011 print ("Line 2 - Value of z is ", z)

Bitwise Operators in Python

Python
4 years ago
print('Hello world!')

Identity Operators in Python

Python
4 years ago
x = 10 y = 10 print(x is y) print(x is not y)

Membership Operators in Python

Python
4 years ago
string1 = 'Hello' print('H'in string1) print('H'not in string1)

Logical Operators in Python

Python
4 years ago
X=10 Y=9 print(X==10 and X>Y) print(X==10 or X<Y) print(X!=10)

Comparison Operators in Python

Python
4 years ago
x = 10 y = 9 print(x==y) print(x!=y) print(x<=y) print(x>=y) print(x<y) print(x>y) print(x<y)

Assignment Operators

Python
4 years ago
a = 10 a+=10 print(a) a = 10 a-= 5 print(a) a = 10 a*=5

Arithmetic operators in python

Python
4 years ago
a = 10 b = 5 x = 10 y = 3 print(a+b) print(a-b) print(a/b) print(a*b) print(a%b)

String Concatenation in Python

Python
4 years ago
a = "hello" b = "world" c = 34 # यह सही तरीका है print(a+b) print("hello" + "world") # नीचे वाले कोड को प्रिंट करने के लिए कोड को सेलेक्ट करे और ctrl और / को एक साथ दबाए