Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: python requests library .JSON() error
Post: RE: python requests library .JSON() error

I get this response: <Response [200]>
mHosseinDS86 General Coding Help 6 3,461 Dec-19-2022, 08:11 PM
    Thread: python requests library .JSON() error
Post: RE: python requests library .JSON() error

Thanks for the reply. I'm still getting this error. JSONDecodeError: Expecting value: line 1 column 1 (char 0)
mHosseinDS86 General Coding Help 6 3,461 Dec-19-2022, 07:31 PM
    Thread: python requests library .JSON() error
Post: python requests library .JSON() error

Can someone explain this? I'm trying to use python requests library, its attributes and methods. while using .JSON() method I get this error. How should I fix it and why this error? thanks in advance....
mHosseinDS86 General Coding Help 6 3,461 Dec-19-2022, 07:17 PM
    Thread: How to change the datatype of list elements?
Post: RE: How to change the datatype of list elements?

(Aug-23-2022, 05:05 PM)deanhystad Wrote: Why would "marks" be strings when you want them to be int? Should the change be upstream? If you do have a list of str and you want to convert it to a list...
mHosseinDS86 General Coding Help 9 2,013 Aug-24-2022, 04:57 PM
    Thread: How to change the datatype of list elements?
Post: RE: How to change the datatype of list elements?

example: >>>> marks=["50","60","70","80","90"]all the elements are in string datatype. I want to change elements into integers.
mHosseinDS86 General Coding Help 9 2,013 Aug-23-2022, 03:22 PM
    Thread: How to change the datatype of list elements?
Post: How to change the datatype of list elements?

hi there everyone! I have a question related to changing the datatype of list: - How to change the datatype of list?
mHosseinDS86 General Coding Help 9 2,013 Aug-23-2022, 02:44 PM
    Thread: How to split the input taken from user into a single character?
Post: RE: How to split the input taken from user into a ...

(Aug-17-2022, 10:10 AM)menator01 Wrote: Is this what you after? string = input() string = list(string) print(string) Thanks for replying menator01.
mHosseinDS86 General Coding Help 3 1,192 Aug-17-2022, 10:26 AM
    Thread: How to split the input taken from user into a single character?
Post: How to split the input taken from user into a sing...

Hi there everyone, Hope you guys are doing awesome coding! I'm new and learning python. I just wanted to ask you guys that I want to take the input from user which can be done by using input() functio...
mHosseinDS86 General Coding Help 3 1,192 Aug-17-2022, 09:53 AM
    Thread: Anaconda Interpretor and Jypiter
Post: RE: Anaconda Interpretor and Jypiter

Hi there everyone! I'm using jupyter notebook to practice python, but when I run and code it doesn't show the output. for example: Marks = map(int,input("Enter Marks: ").split()); >>>> ...
mHosseinDS86 Data Science 7 3,397 Aug-17-2022, 09:39 AM
    Thread: The of ( : ) what does it do?
Post: RE: The of ( : ) what does it do?

I guess its a slicing of list starting from 0 index to the last index. code: names_of_footballers = ["Ronaldo","Messi","Zidan",'Saleh"]; print(names_of_footballers[:]); >>>["Ronaldo","Mess...
mHosseinDS86 General Coding Help 11 1,949 Jul-31-2022, 09:33 AM

User Panel Messages

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