Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help! Program in python
Post: RE: Help! Program in python

print('Enter the X and Y coordinates for the point:') x = float(input('Enter X = ')) y = float(input('Enter Y = ')) if x < -1 or x > 4: flag = 0 #False # complicated elif hard to understand ...
ICanIBB Homework 4 928 Oct-11-2023, 01:30 AM
    Thread: Python University Laboratory - Help
Post: RE: Python University Laboratory - Help

Try this. I double checked, it works. # Reading Data N = int(input()) sale = list(map(int, input().split())) L = int(input()) # Recrurrence Matrix graphic = [[0 for _ in range(N)] for _ in range(N)...
ICanIBB Homework 3 1,291 Sep-29-2023, 07:56 PM
    Thread: Trouble with installing python
Post: RE: Trouble with installing python

(Sep-22-2023, 03:48 PM)domingo251 Wrote: I have a trouble with install python , i have windows 10 and two of my friends has 11 i can install it normally but when my friends trying nothing works , we...
ICanIBB General Coding Help 2 605 Sep-23-2023, 12:03 AM
    Thread: max_minus_min_abs
Post: RE: max_minus_min_abs

def max_minus_min_abs(first_num, second_num): return max(first_num, second_num) - min(first_num, second_num) # split returns a list of strings here nums = input('Enter 2 numbers separated by a s...
ICanIBB Homework 3 1,059 Sep-21-2023, 02:05 AM
    Thread: Check if two matrix are equal and of not add the matrix to the list
Post: RE: Check if two matrix are equal and of not add t...

for in_su4 in su4_np: if np.array_equal(deneme, in_su4): print(in_su4) print(deneme) break else: su4_np.append(deneme)
ICanIBB General Coding Help 3 840 Jul-10-2023, 01:46 AM
    Thread: Review for my Fibonacci sequence, please. (´。• ω •。`)
Post: RE: Review for my Fibonacci sequence, please. (´。•...

There is one issue
ICanIBB Code Review 6 1,622 Jul-02-2023, 02:24 AM
    Thread: Why do the lists not match?
Post: RE: Why do the lists not match?

Because c is [[1,0], [1,0]] after step 9
ICanIBB General Coding Help 3 823 Jul-01-2023, 09:19 PM
    Thread: Rename all files in a folder
Post: RE: Rename all files in a folder

(Jun-28-2023, 03:16 PM)deanhystad Wrote: from pathlib import Path import re pattern = re.compile(r"(\d{4}-\d{2}-\d{2}) \d{2}\.\d{2}\.\d{2}") def rename_file(file, new_name): """Rename file na...
ICanIBB General Coding Help 9 1,517 Jun-29-2023, 03:01 AM
    Thread: [PySide6] Alarms App
Post: RE: [PySide6] Alarms App

Yes, I agree with Axel at this moment.
ICanIBB Code Review 2 1,193 Jun-29-2023, 02:51 AM
    Thread: Why do I have to repeat items in list slices in order to make this work?
Post: RE: Why do I have to repeat items in list slices i...

Slicing starts at the start number and ends before the end number. And indexing starts at 0.
ICanIBB General Coding Help 7 1,358 May-22-2023, 10:39 PM
    Thread: Exercise List Overlap
Post: RE: Exercise List Overlap

**dance** **dance** **dance**
ICanIBB General Coding Help 7 3,171 Apr-01-2021, 08:17 PM
    Thread: Help: write 'case' with Python
Post: Help: write 'case' with Python

Hi, I remember in C we can use: case 0: sentence 0 case 1: sentence 1 case 2: sentence 2 ... Can I write similar sentence with Python? If yes, is there an example code?
ICanIBB General Coding Help 2 1,883 Jan-27-2021, 08:36 PM
    Thread: Python not working on Windows 10
Post: RE: Python not working on Windows 10

I have no idea about this error, now. Sorry.
ICanIBB General Coding Help 3 7,063 Dec-15-2019, 05:05 AM
    Thread: How to Loop my calculator input
Post: RE: How to Loop my calculator input

Thank Sandeep for sharing script. I made a little change to improve the code: can deal with cases where line < 1, and can calculate values which are not integer. Best Regards, class calc(): d...
ICanIBB General Coding Help 2 3,772 Dec-13-2019, 04:57 AM
    Thread: Import Python file with a name of a module in Stantard Library
Post: RE: Import Python file with a name of a module in ...

import time.py rather than import time I think. Can you have a try? Why can't you change the name of time.py? It is easiest way to solve the problem. Or, you can try jefsummers's solution, it works.
ICanIBB Homework 7 3,132 Dec-11-2019, 06:08 AM

User Panel Messages

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