1. भारतीय संविधान को लिखने का कार्य किसने किया था?
- भारतीय संविधान को प्रेम बिहारी नारायण रायज़ादा ने अंग्रेजी में और वसंत कृष्ण वैद्य ने हिंदी में हाथ से लिखा था।
2. संविधान सभा का अध्यक्ष कौन था?
- .....
More details join: https://t.me/SidsAnalysis/38
Join for daily intrusting knowledge
- भारतीय संविधान को प्रेम बिहारी नारायण रायज़ादा ने अंग्रेजी में और वसंत कृष्ण वैद्य ने हिंदी में हाथ से लिखा था।
2. संविधान सभा का अध्यक्ष कौन था?
- .....
More details join: https://t.me/SidsAnalysis/38
Join for daily intrusting knowledge
👍1👎1
Become Termux Expert in Hindi Series Video No.: 7 | Change Termux Permission
https://youtu.be/53b40lkce3s
https://youtu.be/53b40lkce3s
YouTube
Become Termux Expert in Hindi Series #7 | Change termux permissions | Termux storage permission
In this video, I exaplained You about how to change permissions of termux. How to change storage, video, photos permissions and also notifications permission.
Playlist:
https://youtube.com/playlist?list=PLjEYzWkdEvxsirWewr-tsGoVLrY7ABa8f&si=c8ugTtthZ67ud_zX…
Playlist:
https://youtube.com/playlist?list=PLjEYzWkdEvxsirWewr-tsGoVLrY7ABa8f&si=c8ugTtthZ67ud_zX…
👍4
आप सभी को स्वतंत्रता दिवस की हार्दिक बधाई 🇮🇳🇮🇳
👍3❤1
Forwarded from BCA MCA Btech CS IT Channel (Siddharth Sharma)
Is There any Way to run Any language code other than javascript in frontend (browser) ?
Anonymous Quiz
81%
Yes
19%
No
👍1
In these days rust is getting much popular
1) Because of it's speed of execution.
2) It's full controll on system memory
3) it's ownership model
4) And integration to other languages
So why wait let's join our rust channel
https://t.me/Rust_Codes_Pro
1) Because of it's speed of execution.
2) It's full controll on system memory
3) it's ownership model
4) And integration to other languages
So why wait let's join our rust channel
https://t.me/Rust_Codes_Pro
Telegram
Rust Codes Basic to Advanced
Rust Codes Basic to Advanced
To check whether string s1 contains another string s2, use ________
Anonymous Quiz
18%
s1.__contains__(s2)
36%
s2 in s1
38%
s1.contains(s2)
8%
si.in(s2)
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>,)
What will be the output of the following Python code?
print("abc DEF".capitalize())
print("abc DEF".capitalize())
Anonymous Quiz
10%
abc def
66%
ABC DEF
13%
Abc def
11%
Abc Def
👍1
Which year did Python win the "Most Lovely Coding Language" award for the first time?
Anonymous Quiz
54%
2000
22%
1991
12%
1999
12%
1997
👍1
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>,)
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 1))
print("xyyzxyzxzxyy".count('yy', 1))
Anonymous Quiz
43%
2
17%
0
31%
1
10%
none
way to create array and perform operation using numpy.
code :
Output:-
pip install numpy
code :
import numpy as n
# creating array
d=n.array([1,2,3])
d2=n.array([4,5,6])
print(d) #it doesnt seperated with comma
print(d2) #it doesnt seperated with comma
# performing operation
print(d+d2) #it adds the corresponding elements of the arrays
print(d2-d) #it subtracts the corresponding elements of the arrays
print(d*d2) #it multiplies the corresponding elements of the arrays
#similary you can do operation with single element
d3=n.array([10])
print(d*d3)
print(d+d3)
print(d-d3)
Output:-
[1 2 3]
[4 5 6]
[5 7 9]
[3 3 3]
[ 4 10 18]
[10 20 30]
[11 12 13]
[-9 -8 -7]
👍2❤1
Forwarded from ˹ᴍʀ sᴜᴋᴋᴜɴ˼ (</> ᴍᴜᴋᴇsʜ </>,)
Custom Telegram Bot Creation!
What We Offer:
What We Offer:
- We take orders to build Custom Telegram botsYour choice, your bot, custom-built for you.
- Multifunction Bot [ with your requirement ]
- For FAQ DM : @Itz_legendCoder
👍1
PYTHON PROGRAMMING
print(max("hHiI"))
Isme i option correct hai sorry for wrong code
Aap logo ko koi bhi code ho use khud se test karke dekhna chahiye
Aur agar koi code wrong lage to use batana chahiye comment me
Isse hame lagega ki aap bhi coding man se kar rhe
Aap logo ko koi bhi code ho use khud se test karke dekhna chahiye
Aur agar koi code wrong lage to use batana chahiye comment me
Isse hame lagega ki aap bhi coding man se kar rhe
👍4
Introduction to File Handling
Python provides built-in functions to work with files. The most common operations include:
Opening a file:
Reading from a file:
Writing to a file:
Closing a file:
Syntax:
The
'
'
'
'
'
'
Python provides built-in functions to work with files. The most common operations include:
Opening a file:
open()Reading from a file:
read(), readline(), readlines()Writing to a file:
write(), writelines()Closing a file:
close()Syntax:
file = open("filename", "mode")The
mode defines how the file will be opened:'
r': Read (default mode, raises an error if the file does not exist)'
w': Write (creates a new file if it does not exist, overwrites existing content)'
a': Append (creates a new file if it does not exist, appends to existing content)'
x': Create (creates a new file, raises an error if the file exists)'
b': Binary mode (e.g., 'rb' for reading binary files)'
t': Text mode (default mode, used for reading/writing text files)Opening and Closing Files
Opening a File
To open a file, use the
Example:
This will open the file
Closing a File
It’s good practice to close a file after you are done with it using the
Alternatively, you can use the
Example:
Opening a File
To open a file, use the
open() function.Example:
file = open("example.txt", "r")This will open the file
example.txt in read mode ('r').Closing a File
It’s good practice to close a file after you are done with it using the
close() method. This frees up system resources.file.close()
Alternatively, you can use the
with statement to automatically close the file after the block of code is executed.Example:
with open("example.txt", "r") as file:
content = file.read()
print(content) # File is automatically closed after the blockReading from a File
Python provides several methods to read the contents of a file.
Reads the entire content of a file as a single string.
Example:
Reads one line at a time from the file.
Example:
Reads all lines of a file and returns them as a list of strings.
Example:
Python provides several methods to read the contents of a file.
read() MethodReads the entire content of a file as a single string.
Example:
with open("example.txt", "r") as file:
content = file.read()
print(content) # Prints the entire file contentreadline() MethodReads one line at a time from the file.
Example:
with open("example.txt", "r") as file:
line = file.readline()
print(line) # Prints the first line of the filereadlines() MethodReads all lines of a file and returns them as a list of strings.
Example:
with open("example.txt", "r") as file:
lines = file.readlines()
print(lines) # Prints all lines in a listWriting to a File
To write content to a file, you can use the
The write() method writes a string to the file.
Example:
The
Example:
To write content to a file, you can use the
write() or writelines() methods. Opening a file in write ('w') mode will create the file if it doesn’t exist or overwrite it if it does.write() MethodThe write() method writes a string to the file.
Example:
with open("output.txt", "w") as file:
file.write("Hello, World!\n")
file.write("This is a Python program.\n")writelines() MethodThe
writelines() method takes a list of strings and writes them to the file.Example:
lines = ["First line\n", "Second line\n", "Third line\n"]
with open("output.txt", "w") as file:
file.writelines(lines)
👍1
Appending to a File
When you want to add content to the end of an existing file without overwriting it, you can use the append mode ('
Example:
When you want to add content to the end of an existing file without overwriting it, you can use the append mode ('
a').Example:
with open("output.txt", "a") as file:
file.write("This line will be appended.\n")Working with Binary Files
In addition to text files, you can also work with binary files such as images, videos, and executables by opening the file in binary mode ('
Reading a Binary File
Example:
Writing to a Binary File
Example:
In addition to text files, you can also work with binary files such as images, videos, and executables by opening the file in binary mode ('
b').Reading a Binary File
Example:
with open("image.jpg", "rb") as file:
binary_content = file.read()
print(binary_content) # Outputs the binary content of the imageWriting to a Binary File
Example:
with open("new_image.jpg", "wb") as file:
file.write(binary_content) # Writes binary content to a new fileHandling File Exceptions
File operations can result in errors, such as trying to open a non-existent file in read mode. You can handle such cases using exception handling with
Example:
File operations can result in errors, such as trying to open a non-existent file in read mode. You can handle such cases using exception handling with
try and except.Example:
try:
with open("non_existent_file.txt", "r") as file:
content = file.read()
except FileNotFoundError:
print("File not found. Please check the filename.")
👍1
File Positioning:
Example:
seek() and tell()tell(): Returns the current position of the file pointer (in bytes).seek(offset, from_what): Moves the file pointer to a specified location.Example:
with open("example.txt", "r") as file:
print(file.tell()) # Prints the current position of the file pointer
file.seek(0) # Moves the pointer to the beginning of the file
print(file.read())