Questions tagged [apostrophe]

The single-quote character (')

499 questions
-3
votes
3 answers

f.readline() returns text in apostrophes, how to remove it?

I need to read a list of colors from txt file. For example color.txt which looks like this: red blue green what I do is: with open('color.txt') as f: line = f.readline().strip() when calling 'line' my result comes…
Blacho
  • 87
  • 1
  • 1
  • 8
-4
votes
1 answer

Apostrophes in Html and JavaScript

how can I write this string correctly? tr = tr + '' Thank you!
-4
votes
2 answers

Apostrophe in char data type

char c; c = '2'; printf("%d\n",c); So this question is from my quiz, it is asking what is the display. The answer is 50, i tried by using program, but why it is 50? not 2 or anything?
1 2 3
33
34