• Register

Recent questions tagged python-3

0 votes
1 answer 4 views
Problem: Can anyone assist me with this issue? >Valueerror: input strings must be a multiple of 16 in length.
asked 9 hours ago Rada Gracelynn 1.8k points
0 votes
1 answer 2 views
Problem: Please give me an answer to this >Python3 is not recognized as an internal or external command.
asked 11 hours ago Rada Gracelynn 1.8k points
0 votes
1 answer 2 views
Problem: I am in trouble while solving it .. please help me .. How to run python cgi script in windows?
asked 15 hours ago Ifra 36.4k points
0 votes
1 answer 4 views
Problem: Please help me … how can I solve it? Generator' object has no attribute 'next'
asked 1 day ago Ifra 36.4k points
0 votes
1 answer 7 views
Problem: Please solve it … Because I am unable to find out the solution .. How to print multiple variables in python
asked 1 day ago Ifra 36.4k points
0 votes
1 answer 5 views
Problem: Is anyone available to assist me and resolve this issue? Python script to read a file line by line
asked 2 days ago Ifra 36.4k points
0 votes
1 answer 1 view
Problem: I have 2 files: stopwords.txt and a.txt.I want to remove the stop words from file stopwords.txt in file a.txt and separated by white spaces. How do I do it?
asked 3 days ago sumaiya simi 43.9k points
0 votes
1 answer 6 views
Problem: Do you have solution of > Python3' is not recognized as an internal or external command,
asked 3 days ago sumaiya simi 43.9k points
0 votes
1 answer 4 views
Problem: I have a source code read CAPTCHA. When i run test, I got a problem on Windows 10.I found a ask on stackoverflow But i can not fix this error .PLease anyone can help me, to fix detail this error?
asked 3 days ago salim1 60.6k points
0 votes
1 answer 5 views
Problem: "Boolean Series key will be reindexed to match DataFrame index. from ipykernel import kernelapp as app" After searching for a solution people suggested I used '&', but after using that I get a other error..menu_sub= menu[menu["Trans Fat"]==0 & menu["Cholesterol (% Daily Value)"]= ... item(), a.any() or a.all(). Is there a way to do this in one line? or do have to create 3 different lines?
asked 4 days ago sumaiya simi 43.9k points
0 votes
1 answer 5 views
Problem: I'm trying to print the return from a function but I get this error message:unsupported format string passed to list.__format__.I'm not sure why I'm getting this error message or what it means.
asked 4 days ago sumaiya simi 43.9k points
0 votes
1 answer 5 views
Problem: I am having trouble switching from ggplot2 into seaborn. Currently using Anaconda v. 4.5.8 and Python 3.6.3.What can I do?
asked 4 days ago sumaiya simi 43.9k points
0 votes
1 answer 4 views
Problem: I need to make a program that will read a text file and print how many vowels and consonants there are. I make a text file to test and the only thing in it is "This is a test". However the output it always:Enter the file to check: test.txt.The number of Vowels ... cons I would also like to know, as I get an error when I try to user .lower() to convert everything in the file to lower case.
asked 4 days ago Humaira ahmed 50.7k points
0 votes
1 answer 4 views
Problem: Can anyone tell me the solution of this problem? Importerror: no module named 'openpyxl'
asked 5 days ago Ifra 36.4k points
0 votes
1 answer 3 views
Problem: I am attempting to iterate over the following string, using a for loop: >>> for a,b,c in "cat" print(a,b,c) Now what I intended for this to do was print out each character in the string individually on one physical line, instead I receive an error. I am aware that this is ... list operator []: >>> for a,b,c in ["cat"] print(a,b,c) c a t But could someone explain why this is the case?
asked 6 days ago ochena 23.3k points
0 votes
1 answer 2 views
Problem: I have tried to make a list from the string and then deleting the element. Below is my code for this problem. Is this correct? Or should I think of something else? Can you tell a better method than this and why is that method better?
asked 6 days ago Humaira ahmed 50.7k points
0 votes
1 answer 11 views
Problem: I am trying to fit a Word2Vec model. According to the documentation for Gensim's Word2Vec we do not need to call model.build_vocabulary before using it. But yet it is asking for me to do it. I have tried calling this function and it has not worked. I also fitted a Word2Vec model before without needing to call model.build_vocabulary . Am I doing something wrong?
asked May 1 padma1 34.8k points
0 votes
1 answer 9 views
Problem: Can anyone tell me the solution of this problem? Nameerror: global name '' is not defined
asked May 1 Ifra 36.4k points
0 votes
0 answers 2 views
Problem: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix:[ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ]. I want to know this solution in python, c++, java.
asked Apr 28 nabin 4.6k points
0 votes
1 answer 7 views
Problem: Any solution to this issue > Write a function swap that swaps the first and last elements of a list argument.
asked Apr 26 ummeshani 9.5k points