170 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
4
answers
184
views
Alphabetic increment pattern in python - a-z, aa-az,ba-bz...aaa-azz
I am trying to work out how to achieve an alphabetic increment that is ran over many items as part of a renamer.
I am using chr() and ord() to retrieve the next letter increment after a starting ...
0
votes
1
answer
69
views
Convert 0 to 255 to single Char
I am trying to convert values from 0 to 255 to a single char.
I am using chr. But this is somehow converting a number like 255 to a two char string.
I add up those values to a string which is then ...
0
votes
1
answer
26
views
How do I return a list of letters when I input integers into a stack in a python?
I am currently learning python and I am struggling to complete the following task I need to input integers into a stack and convert these to capital letters. I have tried a few variations of the code ...
1
vote
0
answers
25
views
Issues converting chr to POSIXct and watr.heat.map in lakeanalyzer
I am trying to create a water heat map (wtr.heat.map) using lake analyzer and I keep running into this error
Error in r[i1] - r[-length(r):-(length(r) - lag + 1L)] :
non-numeric argument to binary ...
0
votes
2
answers
187
views
How to compress text length using Unicode and bases, and be able to revert it back?
There are 44 characters in this text: the quick brown fox jumped over the lazy dog
The same text can be represented with just 11 Unicode characters:
(These characters look the ...
-2
votes
1
answer
542
views
Getting question mark icons when using the chr() in python (version : 3.10 )
I came across the inbuilt python function chr() which number input and displays the unicode character(opposite of ord() ). I ran a loop from 0 to 300 to check the unicode characters and I for a lot of ...
1
vote
2
answers
447
views
Want to see only the chr variables (out of a list of chr and num variables) using str() function
I am using the following to get a sense of which variables are char, num, etc, and it works fine but now I'd like to see only those variables that R classifies as chr. Is there a path to doing so?
str(...
-1
votes
1
answer
112
views
In python, how would I convert a list of different length numbers to a list the same ascii characters?
I have a list of numbers:
a = [2, 2, 30, 1, 30, 6, 3, 30, 0, 9, 4, 30, 1, 30, 1, 29]
I am trying to convert the list from integers to ascii characters of the same number before converting them to hex....
1
vote
1
answer
222
views
Convert From ASCII W/O chr() Python
I am writing a program to get keyboard inputs. Here is the code:
key = 0
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
if event.type ==...
1
vote
4
answers
1k
views
How do I convert a float matrix into integer matrix?
I have a 25 by 25 matrix looks like
solution = array([[ 3, 14, 12, 6, 25, 19, 7, 21, 18, 16, 5, 24, 9, 10, 1, 13,
23, 4, 20, 8, 22, 11, 17, 15, 2],
[ 2, 9, ...
0
votes
1
answer
305
views
vba replace multiple Chr(xx) in one specific range
I have this segment in my code that I have to remove some characters from a range.
Instead of looping through every character inside every single cell in the range, I could just use the .Replace ...
-1
votes
1
answer
463
views
why does it say Syntax,Error: invalid syntax at line 5 [closed]
from random import*
def saisie():
ch1=""
for i in range (1,9):
ch1[i]=chr(randint(ord'A',ord'Z'))
ch1=ch1+ch1[i]
return ch1
i wanted to get a word randomly ...
0
votes
0
answers
206
views
Caesar cipher in Python, exercise
I'm stuck in solving the following exercise:
"*From the standard input you will get an integer n and a message encrypted by Caesar cipher (i.e. shifted by n letters down the alphabet). Decrypt ...
-1
votes
3
answers
414
views
Why do I keep getting an error that the chr() value is out of range?
CODE:
from tkinter import *
from tkinter.filedialog import askopenfilename, asksaveasfilename
ews = 3
xds = True
while xds:
password = input("ENTER A 7 DIGIT PASSWORD: ")
if password ...
1
vote
1
answer
172
views
Need to print out the Python3 Character Map (asc:32 - 127)
I need to write a program that prints out the chr lines from the table below (including 32 and 127 which is just whitespace). I was able to successfully print all the chr from the table but it prints ...