0

How to take user input in title format in python . title () without using 2nd variable to save.

24th Nov 2022, 7:44 AM
janvi vashistha
7 odpowiedzi
+ 5
janvi vashistha , please link your code here
24th Nov 2022, 7:05 PM
Lothar
Lothar - avatar
24th Nov 2022, 8:43 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 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
25th Nov 2022, 4:49 PM
Lothar
Lothar - avatar
+ 1
Well then iam really sorry for that … its my ipad they use other unicode chars … Sorry ☹️
25th Nov 2022, 7:15 PM
S3R43o3
S3R43o3 - avatar
0
What you mean by "title format"?
24th Nov 2022, 7:48 AM
KrOW
KrOW - avatar
0
. title ()
24th Nov 2022, 7:55 AM
janvi vashistha
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
25th Nov 2022, 2:47 PM
S3R43o3
S3R43o3 - avatar