Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to determine how many variables are referring the same id in python?
Post: RE: How to determine how many variables are referr...

Quote:Why do want to do this?. It also break over integer 256. >>> divyansh = 2222 >>> jhon = 2222 >>> id(divyansh) 2362812091760 >>> id(jhon) 2362812091920 >>...
divyansh General Coding Help 5 696 Aug-04-2020, 01:10 PM
    Thread: How to determine how many variables are referring the same id in python?
Post: How to determine how many variables are referring ...

consider the python code below divyansh = 22 jhon = 22 # below are id's id(divyansh) id(jhon) id(22) # all of the above ids will be same now i wish to find the names of the...
divyansh General Coding Help 5 696 Aug-04-2020, 10:41 AM
    Thread: Why is one duplicate not removed?
Post: RE: Why is one duplicate not removed?

for more info you can watch MIT 60001 course 5th lecture on youtube you will find the same example in the last 5 min of that lecture
divyansh General Coding Help 4 808 Jun-09-2020, 05:56 PM
    Thread: String slicing and loop iteration
Post: RE: String slicing and loop iteration

Quote: You have to figure the code on your own - the forum is focused on education, not solving answers for another person Quote: My apologies @pyzyx2qwerty, I will make the edit so that it does not...
divyansh General Coding Help 9 1,710 Jun-07-2020, 10:29 PM
    Thread: String slicing and loop iteration
Post: RE: String slicing and loop iteration

can you provided a proper code for the mentioned output. ? @BitPython
divyansh General Coding Help 9 1,710 Jun-04-2020, 11:16 PM
    Thread: String slicing and loop iteration
Post: String slicing and loop iteration

string="demoString" for ch in string: print(ch) # this for loop will post a single character #current outpput #d #e #m #o #S #t #r #i #n #g ''' my question is how to have sub-strings in output...
divyansh General Coding Help 9 1,710 Jun-04-2020, 11:08 PM
    Thread: String slicing
Post: RE: String slicing

i don't know what you are asking for i am new here and i tried to post a picture here but it didn't work
divyansh General Coding Help 6 1,034 May-30-2020, 10:04 PM
    Thread: String slicing
Post: String slicing

str1="divyansh tiwari" # this is just a string var1=str1[-1:-16:1] # in this i know that the slicing will start at -1 index that is the last index and will end on the -16th index that is excluding -1...
divyansh General Coding Help 6 1,034 May-30-2020, 09:30 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020