14,949 Topics

Member Avatar for
Member Avatar for Daniel_167

hello, i have problem to write a generator function to slice a great list to pieces in python 3. /because of RAM/. is it possible?

Member Avatar for Reverend Jim
0
34
Member Avatar for Somil_1

Can u help me I am making a game in pygsme pygame in python so when I run the program it appears a blank black screen instead of the image that I hve upload in pygame to make game so actuaaly when I run the program it appears blank black …

Member Avatar for Schol-R-LEA
0
75
Member Avatar for Justin Habel

This is my code index_dictionary = dict() with open("BIBLE.txt") as Bible: count = 0 for line in Bible: index = line[:8].split() Book = index[0].strip().upper() chapter, verse = list(map(str.strip, index[1].split(":"))) index_dictionary[(Book, chapter, verse)] = count count += len(line) Bible = open("BIBLE.txt") while True: search_engine = input( "Book list: Ge(Genesis), Ex(Exodus), Le(Leviticus), …

Member Avatar for bogenbroom
0
99
Member Avatar for Thulan
Member Avatar for linux

Is it possible to write a full blown operating system (such as Linux) in Python? I mean writing a kernal, and then other applications that the kernal calls, without having Windows, Linux, UNIX, or Macintosh OS installed on your computer?

Member Avatar for Thulan
2
2K
Member Avatar for isendre

Hi everyone, I'm having trouble creating a program. This program needs to create a square board of size n, where a user inputs an integer value 2 - 9. For example, a board with size n=4 would look like: 1 . . . 2 . . . 3 . . …

Member Avatar for cossy254
1
6K
Member Avatar for David_239

Hi may i ask if someone can help us about where we can create a token payment system for our gaming system in vb. I want to create a payment system in vb using token in registration through online payment and user can set the token they wanted after playing …

Member Avatar for Hemangi_2
1
66
Member Avatar for bandanasc

I am trying to edit a file that contains: Time Column 1 Column 2 Column 3. I need to print Column 2 after column 1. Time Column 1 Column 2

Member Avatar for Schol-R-LEA
0
74
Member Avatar for vorlic

could you recomend me a free bok or a youtube video to start learning python (latest version) from scratch????? grettings, Vito Orlic, Metlika Slovenia

Member Avatar for wpeckham
0
137
Member Avatar for Scagli3tti

Hi, yesterday I threw together a little jumble solver that takes any anagram as an input and returns any real words that can be found using all of the letters of that anagram. Here is the code, it works fine when it comes to determining the answer, but I have …

Member Avatar for michellepermsm
0
1K
Member Avatar for Vevo

Hello, I wrote this code in order to obtain a series of monthly weather observations at Helsinki for a period from 1960 to 2020 and then I saved the data to a local file using package pickle. I used the data available from the API provided by the Finnish Meteorological …

Member Avatar for Vevo
0
824
Member Avatar for Youssef Faisal
Member Avatar for beaverseed
Member Avatar for asfghjkl

Hi everyone, I just want to ask if how i am able to make an if else statement inside a switch case. i want to execute something wherein the user may be able to choose again if he/she would like to do another transaction. for example, the user choose Yes …

Member Avatar for kasmar45
0
257
Member Avatar for jhon_20

how to implement a python function that output 1000 strings that are very similar (only differ in one bit)?

Member Avatar for rproffitt
0
32
Member Avatar for ミツキ 上野

so i already posted three months ago and only reviwed my coded recently , still dotn know what is wrong . the code is quite simple however something keeps going wrong. a possible flaw is the FPS clock which would expain why its black screen but the visible when i …

Member Avatar for Schol-R-LEA
0
43
Member Avatar for Humaira_5

Is there any way I can calculate pairwise distance matrix in python (not biopython) from a file containing 3 rows as: ACCGGT-TAACA ACCGT--AACCG ACCGTGCCTAG

Member Avatar for rproffitt
0
31
Member Avatar for gdtraveller

I'm developing a calendar application The top level window is a frame containing a panel that displays the calendar grid and a panel that contains a "Close" button. I'm unable to obtain the size of the calendar grid panel. When I add code to get the panel size, the result …

Member Avatar for Reverend Jim
0
498
Member Avatar for Humaira_5

Hello, I am quite new to python programming and I need help with writing a code to calculate distance matrix from a text file that contains something like this: ACCGGTGGAACCGG-TAACACCCAC ACCGGT--AACCGGTTAACACCCAC ACCGGTGGAACCGGTAACACCCAC- ACCGGT--------TAACACCCAC-

Member Avatar for rproffitt
0
33
Member Avatar for eliasarximan

Can Someone help me to convert my Python Code to Java Code please? My Python Code : def import_file(file): with open(file,"r") as f: lines = f.readlines() sline = [] for line in lines: xline=line.split(" ") sline.append(xline) return sline def set_file(idf,q,sline): for i in sline: if idf in i: sline[sline.index(i)][1] = …

Member Avatar for Srinu@231
0
282
Member Avatar for shak187

hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much appriciated

Member Avatar for eliasarximan
2
154K
Member Avatar for Benjamin_32

write a function called create_bar_plot that takes two arguments, 1) a matplotlib Axes object and 2) a dictionary. The function should call the bar method on the Axes object with the relevant arguments to make it work. Remember to convert the values from strings to numbers before plotting (and note …

Member Avatar for Dani
0
57
Member Avatar for razstec

Hi, i have this script but cant seem to open the browserframe in the correct place ![Captura_de_ecrã_2021-10-25,_às_11_07_07.png](https://static.daniweb.com/attachments/4/6e99ec442a2fea1bedb081e65e6e1534.png) import ctypes import platform from cefpython3 import cefpython as cef from tkinter import * import tkinter as tk import sys # platforms WINDOWS = platform.system() == 'Windows' LINUX = platform.system() == 'Linux' MAC …

Member Avatar for razstec
0
175
Member Avatar for fonzali

hi , I found this code on the internet , I changed and added some lines to it to make it the way I like . I am very weak in using functions and even worse in using classes , I appreciate it if some one can change this code …

Member Avatar for Thati
0
5K
Member Avatar for Mina13

Error: AttributeError: 'str' object has no attribute 'sort' brand_name = "Huawei" count = 3 while count <= 3: brands = str(input(" Enter cellphone brandname:")) brand_name.insert(brands, count) count = 1 + count brand_name.sort() brand_name.remove("Huawei") print(brand_name)

Member Avatar for Reverend Jim
0
40
Member Avatar for hweyeongimnida

The code is here: https://medium.com/swlh/balancing-chemical-equations-with-python-837518c9075b

Member Avatar for rproffitt
0
47
Member Avatar for RoqueyB

so i have an assignment for a class to make a pick up sticks game. This is the actual assignment: "The rules of pick up sticks are as follows: The user chooses the number of matchsticks (5 to 50) to place in a pile. Then, the computer chooses who will …

Member Avatar for Ben_493
0
9K
Member Avatar for kimvibar51

Using for loop create a program that converts temperature either from Celsius to Fahrenheit or vice versa. Ask the user what will be the input of the user either in Celsius or Fahrenheit. If the input is invalid, print invalid and ask to try again. Ask the user to input …

Member Avatar for rproffitt
0
80
Member Avatar for Essam_6

print("Enter number of columns:",end=" ") cols=int(input()) print(cols) print("Enter number of rows:",end=" ") rows=int(input()) print(rows) print("") side="right"0 print("[5][5] is cleaned") for i in range(rows): if side=="left": for j in range(1,cols): print("Move forward") print("[{i}][{j}] is cleaned".format(i=i,j=j)) else: for j in range(cols-2,-1,-1): print("Move forward") print("[{i}][{j}] is cleaned".format(i=i,j=j)) if(i!=rows-1): if side=="left": print("Turn right") print("[{i}][{j}] …

Member Avatar for rproffitt
0
45
Member Avatar for arvind_m

I am a Data Science Enthusiast, Currently Exploring Different Types of Programming Languages.

Member Avatar for Reverend Jim
0
26

The End.