Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
4 answers
184 views

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 ...
blam's user avatar
  • 97
0 votes
1 answer
69 views

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

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

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

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 ...
1m7's user avatar
  • 11
-2 votes
1 answer
542 views

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

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(...
uThandi's user avatar
  • 11
-1 votes
1 answer
112 views

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

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

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

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

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

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

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

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 ...

15 30 50 per page
1
2 3 4 5
...
12

AltStyle によって変換されたページ (->オリジナル) /