Thursday 19 September 2024

Practical - 67 - Write a program in Python to input a number and print the table of that number.

 Practical - 67 - Write a program in Python to input a number and print the table of that number.


Ans:

n=int(input("Enter a number: "))

for i in range(1,11):

    print(n,"*",i,"=",n*i)

 

Output:

Enter a number: 5

5 * 1 = 5

5 * 2 = 10

5 * 3 = 15

5 * 4 = 20

5 * 5 = 25

5 * 6 = 30

5 * 7 = 35

5 * 8 = 40

5 * 9 = 45

5 * 10 = 50


Practical - 66 - Write a program in python to input number of seconds and print it in the form: hrs:mins:sec. e.g. 4815 seconds are printed as 1 hrs:20 mins:15 secs

Practical - 66 - Write a program in python to input number of seconds and print it in the form: hrs:mins:sec. e.g. 4815 seconds are printed as 1 hrs:20 mins:15 secs


Ans:

n=int(input("Enter number of seconds = "))

hrs=n//3600

n=n-hrs*3600

mins=n//60

sec=n-mins*60

print(hrs,"hrs:",mins,"mins:",sec,"sec")

 

Output:

Enter number of seconds = 4815

1 hrs: 20 mins: 15 sec


Practical - 65 - Write a Python program to take sides of a triangle as input and print its area using Heron's Formula.

Practical - 65 - Write a Python program to take sides of a triangle as input and print its area using Heron's Formula.


Ans:

a=int(input("Enter First side of triange: "))

b=int(input("Enter Second side of triange: "))

c=int(input("Enter Third side of triange: "))

s=(a+b+c)/2

area=(s*(s-a)*(s-b)*(s-c))**0.5

print("Area of triangle=",area)

 

Output:

Enter First side of triange: 3

Enter Second side of triange: 4

Enter Third side of triange: 5

Area of triangle= 6.0


Monday 16 September 2024

शिक्षक बनने की ओर मेरा पहला कदम

 शिक्षक बनने की ओर मेरा पहला कदम

मेरा नाम सचिन शर्मा है। मेरा जन्म उत्तर प्रदेश के मुजफ्फरनगर जिले के एक छोटे से गाँव, भायंगी में एक गरीब ब्राह्मण परिवार में हुआ। हमारा परिवार खेती पर निर्भर था। मेरे पिताजी, चाचाजी और दादाजी सभी खेती करते थे। जीवन कठिनाइयों से भरा था, लेकिन हमारे परिवार में ईमानदारी और मेहनत की गहरी नींव थी, जिसने मुझे जीवन के हर कदम पर प्रेरित किया।

मेरी प्रारंभिक शिक्षा गाँव के सरकारी प्राथमिक विद्यालय में हुई थी। उस समय स्कूल में केवल एक ही शिक्षक थे, श्री नाहर सिंह जी। वे न केवल मेरे शिक्षक थे, बल्कि मेरे पहले गुरु भी थे, जिन्होंने मेरे जीवन को आकार देने में महत्वपूर्ण भूमिका निभाई। उनकी शिक्षा और अनुशासन ने मुझ पर गहरा प्रभाव छोड़ा। उन्होंने हमें न सिर्फ किताबों का ज्ञान दिया, बल्कि जीवन के महत्वपूर्ण मूल्य भी सिखाए, जिनका अनुसरण मैं आज भी करता हूँ। मैं आज जो कुछ भी हूँ, उसमें उनका योगदान अविस्मरणीय है।

जब मैं तीसरी कक्षा में था, तब श्री नाहर सिंह जी ने मेरे भीतर की क्षमता को पहचाना। चूंकि वे स्कूल में अकेले शिक्षक थे और कक्षा 1 से 5 तक सभी कक्षाएँ उन्हीं को पढ़ानी होती थीं, इसलिए अक्सर वे छोटी कक्षाओं को पढ़ाने की ज़िम्मेदारी मुझे सौंप देते थे। उस समय मैं कक्षा 3 में था, और यह मेरे जीवन का एक महत्वपूर्ण मोड़ साबित हुआ। उनके मार्गदर्शन में मैंने पढ़ाने की कला सीखी। यह अनुभव मेरे लिए विशेष था, क्योंकि यहीं से मेरे अंदर पढ़ाने की रुचि और जिम्मेदारी का बीज बोया गया।

आज मैं एक प्रतिष्ठित शिक्षक हूँ, और इस यात्रा की शुरुआत मेरे गाँव के उसी छोटे से स्कूल में हुई थी, जहाँ मेरे गुरु श्री नाहर सिंह जी ने मुझे न केवल शिक्षा का महत्व सिखाया, बल्कि मुझे एक शिक्षक बनने की दिशा में भी प्रेरित किया। उनके सिखाए गए पाठ और उनका विश्वास मेरे जीवन का आधार बन गए।

Sunday 15 September 2024

अभियंता दिवस (Engineer’s Day)

अभियंता दिवस (Engineer’s Day)

अभियंता दिवस हर साल 15 सितंबर को मनाया जाता है, जो महान भारतीय अभियंता, सर मोक्षगुंडम विश्वेश्वरैया की जयंती के उपलक्ष्य में मनाया जाता है। सर एम. विश्वेश्वरैया को उनके असाधारण योगदान और भारत में अभियंता के क्षेत्र में उनके योगदान के लिए याद किया जाता है। उनका जन्म 15 सितंबर, 1861 को हुआ था और उन्होंने इंजीनियरिंग के क्षेत्र में अद्वितीय उपलब्धियाँ हासिल कीं, जिसके कारण उन्हें 1955 में 'भारत रत्न' से सम्मानित किया गया।

अभियंता का महत्व

अभियंता हमारे समाज के निर्माता होते हैं। उनकी कड़ी मेहनत और तकनीकी कौशल के बिना हम आधुनिक जीवन की सुविधाओं का आनंद नहीं ले सकते। चाहे वह सड़कें हों, पुल, इमारतें, या बिजली संयंत्र, हर जगह अभियंता का योगदान महत्वपूर्ण है। वह न केवल निर्माण कार्य में, बल्कि तकनीकी विकास, सॉफ्टवेयर इंजीनियरिंग, और वैज्ञानिक अनुसंधान में भी अहम भूमिका निभाते हैं।

सर एम. विश्वेश्वरैया का योगदान

सर एम. विश्वेश्वरैया को विशेष रूप से भारत में सिंचाई और बाढ़ नियंत्रण के क्षेत्र में उनके अद्वितीय योगदान के लिए याद किया जाता है। उन्होंने कावेरी नदी पर कृष्णराज सागर बांध का निर्माण किया, जो कर्नाटक के विकास में मील का पत्थर साबित हुआ। इसके अलावा, उन्होंने जल संसाधन प्रबंधन, रेलवे प्रणाली और सिंचाई परियोजनाओं में सुधार किए, जिससे भारत में इंजीनियरिंग के क्षेत्र में क्रांति आई।

अभियंता दिवस का महत्व

अभियंता दिवस केवल सर एम. विश्वेश्वरैया की उपलब्धियों का सम्मान करने के लिए नहीं, बल्कि इंजीनियरिंग के पेशे में लगे सभी व्यक्तियों को प्रेरित करने के लिए मनाया जाता है। यह दिन हमें याद दिलाता है कि कैसे अभियंता हमारी जिंदगी को बेहतर और सुविधाजनक बनाने के लिए लगातार नए-नए समाधान ढूंढते हैं। यह दिन युवाओं को अभियंता बनने के लिए प्रेरित करता है और समाज में उनके योगदान को सराहने का अवसर प्रदान करता है।

निष्कर्ष

अभियंता दिवस हमें यह समझने का मौका देता है कि इंजीनियरिंग का क्षेत्र कितना महत्वपूर्ण है और कैसे यह हमारे जीवन के हर पहलू को प्रभावित करता है। हमें सर एम. विश्वेश्वरैया जैसे महान व्यक्तित्वों से प्रेरणा लेनी चाहिए और उनके नक्शेकदम पर चलते हुए समाज के विकास में योगदान देना चाहिए। अभियंता दिवस उन सभी अभियंताओं का सम्मान करने का दिन है जो हमारे भविष्य को संवारने के लिए निरंतर प्रयासरत हैं।


Engineer’s Day

Engineer’s Day is celebrated every year on September 15 to honor the birth anniversary of the great Indian engineer, Sir Mokshagundam Visvesvaraya. Sir M. Visvesvaraya is remembered for his exceptional contributions to the field of engineering in India. He was born on September 15, 1861, and achieved unparalleled success in engineering, for which he was awarded the 'Bharat Ratna' in 1955.

Importance of Engineers

Engineers are the builders of our society. Without their hard work and technical skills, we would not be able to enjoy the conveniences of modern life. Whether it is roads, bridges, buildings, or power plants, the contribution of engineers is crucial everywhere. They not only play a vital role in construction but also in technological development, software engineering, and scientific research.

Contribution of Sir M. Visvesvaraya

Sir M. Visvesvaraya is especially remembered for his outstanding contribution to the fields of irrigation and flood control in India. He constructed the Krishna Raja Sagar Dam on the Kaveri River, which became a landmark in the development of Karnataka. In addition to this, he made significant improvements in water resource management, the railway system, and irrigation projects, bringing about a revolution in the field of engineering in India.

Significance of Engineer’s Day

Engineer’s Day is not only a day to honor the achievements of Sir M. Visvesvaraya but also to inspire all individuals engaged in the engineering profession. It reminds us of how engineers continuously seek innovative solutions to make our lives better and more convenient. This day motivates young people to become engineers and provides an opportunity to appreciate the contributions of engineers to society.

Conclusion

Engineer’s Day gives us the chance to understand how important the field of engineering is and how it affects every aspect of our lives. We should take inspiration from great personalities like Sir M. Visvesvaraya and follow in their footsteps to contribute to the development of society. Engineer’s Day is a day to honor all engineers who are tirelessly working to shape our future.

Saturday 14 September 2024

Practical - 64 - Write a program in python to input 4 numbers if the addition of all the numbers is multiple of 5 then divide it by 5 otherwise multiply it with 10.

Practical - 64 - Write a program in python to input 4 numbers if the addition of all the numbers is multiple of 5 then divide it by 5 otherwise multiply it with 10.


Ans:

a=int(input("Enter first number: "))

b=int(input("Enter second number: "))

c=int(input("Enter third number: "))

d=int(input("Enter fourth number: "))

sum=a+b+c+d

print("Addition of the numbers=",sum)

if sum%5==0:

    print(sum/5)

else:

    print(sum*10)

 

Output:

Enter first number: 3

Enter second number: 5

Enter third number: 8

Enter fourth number: 9

Addition of the numbers= 25

5.0


OR


Enter first number: 3

Enter second number: 5

Enter third number: 8

Enter fourth number: 7

Addition of the numbers= 23

230


Practical - 63 - Write a program in python to input 4 numbers if the multiplication of the numbers is odd then calculate its square otherwise calculate its cube.

Practical - 63 - Write a program in python to input 4 numbers if the multiplication of the numbers is odd then calculate its square otherwise calculate its cube.


Ans:

a=int(input("Enter first number: "))

b=int(input("Enter second number: "))

c=int(input("Enter third number: "))

d=int(input("Enter fourth number: "))

m=a*b*c*d

print("Multiplication of the numbers=",m)

if m%2==1:

    print("Square=",m**2)

else:

    print("Cube=",m**3)

 

Output:

Enter first number: 3

Enter second number: 4

Enter third number: 5

Enter fourth number: 6

Multiplication of the numbers= 360

Cube= 46656000


OR


Enter first number: 1

Enter second number: 3

Enter third number: 5

Enter fourth number: 3

Multiplication of the numbers= 45

Square= 2025


Practical - 62 - Write a program in python that takes two numbers from the user and check whether 1st number is divisible by 2nd number or not. print “Divisible” if number is divisible otherwise print “Not Divisible”

Practical - 62 - Write a program in python that takes two numbers from the user and check whether 1st number is divisible by 2nd number or not. print “Divisible” if number is divisible otherwise print “Not Divisible”


Ans:

a=int(input("Enter first number: "))

b=int(input("Enter second number: "))

if a%b==0:

    print("Divisible")

else:

    print("Not Divisible")

 

Output:

Enter first number: 15

Enter second number: 3

Divisible

OR

Enter first number: 15

Enter second number: 4

Not Divisible


Practical - 61 - Write a program in python that takes age as input from the user and if age is greater than or equal 18 then print “YOU CAN VOTE” otherwise print “YOU CAN NOT VOTE”.

Practical - 61 - Write a program in python that takes age as input from the user and if age is greater than or equal 18 then print “YOU CAN VOTE” otherwise print “YOU CAN NOT VOTE”.


Ans:

age=int(input("Enter your age: "))

if age>=18:

    print("YOU CAN VOTE")

else:

    print("YOU CAN NOT VOTE")

 

Output:

Enter your age: 21

YOU CAN VOTE

OR

Enter your age: 17

YOU CAN NOT VOTE

Practical - 60 - Write a program in python to input two numbers and prints “SAME” if both the numbers are either even or both are odd otherwise prints “NOT SAME”.

Practical - 60 - Write a program in python to input two numbers and prints “SAME” if both the numbers are either even or both are odd otherwise prints “NOT SAME”.


Ans:

a=int(input("Enter first number: "))

b=int(input("Enter first number: "))

if(a%2==0 and b%2==0) or (a%2==1 and b%2==1):

    print("SAME")

else:

    print("NOT SAME")

 

Output:

Enter first number: 7

Enter first number: 8

NOT SAME

OR

Enter first number: 6

Enter first number: 8

SAME

OR

Enter first number: 5

Enter first number: 7

SAME