0
How to take user input in title format in python . title () without using 2nd variable to save.
7 odpowiedzi
+ 5
janvi vashistha ,
please link your code here
+ 3
+ 3
S3R43o3 ,
sorry to say, but the code you provided is not working, because it uses wrong quotes around the string:
NewTitle = input(„enter a title“).title()
Char “
ID 8220
Unicode Code Point U+201C
Unicode name LEFT DOUBLE QUOTATION MARK
Unicode group General Punctuation
for coding we need to use this character:
Char "
ID 34
Unicode Code Point U+22
Unicode name QUOTATION MARK
Unicode group Basic Latin
+ 1
Well then iam really sorry for that … its my ipad they use other unicode chars …
Sorry ☹️
0
What you mean by "title format"?
0
. title ()
0
Hey a little hint … you can build some functionchains or better called oneliner,
For this ill have a little example here:
NewTitle = input(„enter a title“).title()
Hope that helps
A other little basic thing/hint , if you need coderelation help it is always welcome to post your existing code to understand your problem and wath you want to do better.
Cya happy coding