P
P
PILITYXXX1232020-08-16 17:10:12
Python
PILITYXXX123, 2020-08-16 17:10:12

How to convert a Python variable?

There is a variable -
a = '2020 10 13'
You need to get a variable from it -
b = '2020-10-13'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SKEPTIC, 2020-08-16
@PILITYXXX123

a = a.replace(' ', '-')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question